Interface LazyInitializable

  • All Known Subinterfaces:

    public interface LazyInitializable
    Hibernate "wraps" a java collection in an instance of PersistentCollection. Envers uses custom collection wrappers (ListProxy, SetProxy, etc). All of them need to extend LazyInitializable, so the Hibernate.isInitialized method can check if the collection is initialized or not.
    • Method Detail

      • wasInitialized

        boolean wasInitialized()
        Is this instance initialized?
        Was this collection initialized? Or is its data still not (fully) loaded?
      • forceInitialization

        void forceInitialization()
        To be called internally by the session, forcing immediate initialization.