Class HibernateOrmUtils
java.lang.Object
org.hibernate.search.mapper.orm.common.impl.HibernateOrmUtils
-
Method Summary
Modifier and TypeMethodDescriptionstatic Class<?>entityClass(PersistentClass persistentClass) static EntityDomainType<?>entityDomainType(SessionFactoryImplementor sessionFactory, String entityName) static EntityMappingTypeentityMappingType(SessionFactoryImplementor sessionFactory, String entityName) getServiceOrEmpty(ServiceRegistry serviceRegistry, Class<T> serviceClass) static <T extends Service>
TgetServiceOrFail(ServiceRegistry serviceRegistry, Class<T> serviceClass) static booleanisDiscriminatorMultiTenancyEnabled(Metadata metadata) sortedNonSyntheticProperties(Iterator<Property> propertyIterator) static booleantargetsAllConcreteSubTypes(SessionFactoryImplementor sessionFactory, EntityMappingType commonSupertype, Collection<? extends PojoLoadingTypeContext<?>> targetConcreteSubTypes) static EntityMappingTypestatic SessiontoSession(EntityManager entityManager) static SessionFactoryImplementortoSessionFactoryImplementor(EntityManagerFactory entityManagerFactory) static SessionImplementortoSessionImplementor(EntityManager entityManager)
-
Method Details
-
toSessionFactoryImplementor
public static SessionFactoryImplementor toSessionFactoryImplementor(EntityManagerFactory entityManagerFactory) -
toSession
-
toSessionImplementor
-
entityMappingType
public static EntityMappingType entityMappingType(SessionFactoryImplementor sessionFactory, String entityName) -
entityDomainType
public static EntityDomainType<?> entityDomainType(SessionFactoryImplementor sessionFactory, String entityName) -
entityClass
-
toMostSpecificCommonEntitySuperType
public static EntityMappingType toMostSpecificCommonEntitySuperType(EntityMappingType type1, EntityMappingType type2) -
targetsAllConcreteSubTypes
public static boolean targetsAllConcreteSubTypes(SessionFactoryImplementor sessionFactory, EntityMappingType commonSupertype, Collection<? extends PojoLoadingTypeContext<?>> targetConcreteSubTypes) -
getServiceOrFail
@SuppressForbiddenApis(reason="Safer wrapper") public static <T extends Service> T getServiceOrFail(ServiceRegistry serviceRegistry, Class<T> serviceClass) -
getServiceOrEmpty
@SuppressForbiddenApis(reason="Safer wrapper") public static <T extends Service> Optional<T> getServiceOrEmpty(ServiceRegistry serviceRegistry, Class<T> serviceClass) -
sortedNonSyntheticProperties
-
isDiscriminatorMultiTenancyEnabled
-