Deprecated API
Contents
-
Interfaces Interface Description org.hibernate.boot.spi.AdditionalJaxbMappingProducer Intended for Envers integration until we can migrate Envers away from XML generation for building its model.org.hibernate.bytecode.enhance.spi.LazyPropertyInitializer.InterceptorImplementor Prefer the form of these methods defined onBytecodeLazyAttributeInterceptorinsteadorg.hibernate.cache.RegionFactory Moved, but still need this definition for ehcacheorg.hibernate.cfg.NamingStrategy ImplicitNamingStrategyandPhysicalNamingStrategyshould be used instead.org.hibernate.ejb.HibernateEntityManager UseHibernateEntityManagerinsteadorg.hibernate.ejb.HibernateEntityManagerFactory UseHibernateEntityManagerFactoryinsteadorg.hibernate.engine.spi.SessionOwner (since 5.2) since consolidating hibernate-entitymanager into hibernate-core I believe this is no longer needed.org.hibernate.integrator.spi.ServiceContributingIntegrator A separateServiceContributorshould be used instead.org.hibernate.jpa.event.spi.CallbackBuilder This SPI has never been functional and is no longer used. It will eventually be removed.org.hibernate.jpa.event.spi.CallbackBuilder.CallbackRegistrar UseCallbackRegistrarinstead.org.hibernate.jpa.event.spi.jpa.ExtendedBeanManager UseExtendedBeanManagerinsteadorg.hibernate.jpa.event.spi.jpa.ExtendedBeanManager.LifecycleListener UseExtendedBeanManager.LifecycleListenerinsteadorg.hibernate.jpa.HibernateEntityManager (since 5.2) Use Session (or SessionImplementor), as it now extends EntityManager directlyorg.hibernate.jpa.HibernateEntityManagerFactory (since 5.2) Use SessionFactory (or SessionFactoryImplementor) as it now extends EntityManagerFactory directlyorg.hibernate.mapping.RelationalModel (since 5.2) not needed anymore.org.hibernate.metadata.ClassMetadata (since 6.0) Use Hibernate's mapping modelMappingMetamodelorg.hibernate.metadata.CollectionMetadata (since 6.0) Use Hibernate's mapping modelMappingMetamodelorg.hibernate.Metamodel (since 6.0) PreferJpaMetamodelorg.hibernate.metamodel.model.domain.EmbeddedDomainType (since 6.0) UseEmbeddableDomainTypeinstead. Originally intended to describe the actual usage of an embeddable (the embedded) because it was intended to include the mapping (column, etc) information. However, that causes us to need multiple embeddable instances per embeddable class.org.hibernate.metamodel.spi.MetamodelImplementor (since 6.0) - PreferMappingMetamodelorg.hibernate.persister.entity.Queryable SeeQueryableorg.hibernate.persister.spi.PersisterCreationContext UseRuntimeModelCreationContextinsteadorg.hibernate.query.criteria.JpaPathSource This makes the SQM tree awkward and is not needed for JPA - JPA has no notion of a "path source" as a tree contract.org.hibernate.resource.jdbc.spi.JdbcObserver It is no longer possible to plug custom implementations of this SPI. It will be removed.org.hibernate.stat.NaturalIdCacheStatistics (since 5.3) UseNaturalIdStatistics- unfortunately the old statistics contracts exposed these by region name, rather than the name of the entity defining the natural-idorg.hibernate.stat.SecondLevelCacheStatistics UseCacheRegionStatisticsinsteadorg.hibernate.transform.ResultTransformer ResultTransformer is no longer supported. It has been split intoTupleTransformerandResultListTransformerto define functional interfaces.org.hibernate.tuple.component.ComponentTuplizer for removal in 6.0. See instead `ManagedTypeRepresentationStrategy` and `RepresentationMode` in 6.0org.hibernate.tuple.entity.EntityTuplizer org.hibernate.tuple.Instantiator (as of 6.0) This contract is no longer used by Hibernate. Implement/useInstantiatorinstead. SeeManagedTypeRepresentationStrategyorg.hibernate.tuple.Property Use the directAttributehierarchyorg.hibernate.tuple.Tuplizer
-
Enums Enum Description org.hibernate.loader.BatchFetchStyle (since 6.0) : seeBatchLoadSizingStrategyinstead
-
Exceptions Exceptions Description org.hibernate.cfg.RecoverableException Was only ever referenced in a single place, in an extremely dubious way.
-
Annotation Types Annotation Type Description org.hibernate.annotations.CollectionType Custom handling for "collection types" will be handled differently in 6.0org.hibernate.annotations.ForeignKey Prefer the JPA 2.1 introducedForeignKeyinstead.org.hibernate.annotations.GeneratorType Most uses can be changed to useValueGenerationType+AnnotationValueGenerationorg.hibernate.annotations.Index UsingIndexinstead.org.hibernate.annotations.IndexColumn Prefer the standard JPAOrderColumnannotation and the Hibernate specificListIndexBase(for replacingIndexColumn.base()).
-
Enum Constants Enum Constant Description org.hibernate.annotations.CascadeType.DELETE_ORPHAN use @OneToOne(orphanRemoval=true) or @OneToMany(orphanRemoval=true)org.hibernate.LockMode.FORCE instead use PESSIMISTIC_FORCE_INCREMENTorg.hibernate.LockMode.UPGRADE instead use PESSIMISTIC_WRITE
-
Annotation Type Elements Annotation Type Element Description org.hibernate.annotations.AttributeAccessor.value()