Class DefaultCollectionInitializer

java.lang.Object
ch.tocco.nice2.persist.core.api.hibernate.interceptor.AbstractCollectionInitializer
ch.tocco.nice2.persist.core.impl.hibernate.interceptor.DefaultCollectionInitializer
All Implemented Interfaces:
CollectionInitializer

@Component public class DefaultCollectionInitializer extends AbstractCollectionInitializer
A default implementation of CollectionInitializer which uses the EntityQueryBuilder and CountQueryBuilder to load the collection, which means that all QueryBuilderInterceptor will be used for the query.
  • Constructor Details

  • Method Details

    • supports

      public boolean supports(Object entity, jakarta.persistence.metamodel.Attribute<?,?> collectionName)
      Returns:
      true if this CollectionInitializer supports resolving this relation
    • priority

      public Integer priority()
      Returns:
      the priority in case multiple CollectionInitializer can resolve a relation