Class ExtendedInitializeCollectionEventListener

java.lang.Object
ch.tocco.nice2.persist.core.impl.hibernate.interceptor.ExtendedInitializeCollectionEventListener
All Implemented Interfaces:
Serializable, org.hibernate.event.spi.InitializeCollectionEventListener

public class ExtendedInitializeCollectionEventListener extends Object implements org.hibernate.event.spi.InitializeCollectionEventListener
Custom InitializeCollectionEventListener that allows contributions for custom collection loading. If no contribution is found, the DefaultInitializeCollectionEventListener is used.
See Also:
  • Constructor Details

    • ExtendedInitializeCollectionEventListener

      public ExtendedInitializeCollectionEventListener(CollectionInitializationService collectionInitializationService)
  • Method Details

    • onInitializeCollection

      public void onInitializeCollection(org.hibernate.event.spi.InitializeCollectionEvent event) throws org.hibernate.HibernateException
      Specified by:
      onInitializeCollection in interface org.hibernate.event.spi.InitializeCollectionEventListener
      Throws:
      org.hibernate.HibernateException
    • readField

      protected Object readField(Class declaringType, Object instance, String field)