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 onBytecodeLazyAttributeInterceptor
insteadorg.hibernate.cache.RegionFactory Moved, but still need this definition for ehcacheorg.hibernate.cfg.NamingStrategy ImplicitNamingStrategy
andPhysicalNamingStrategy
should be used instead.org.hibernate.ejb.HibernateEntityManager UseHibernateEntityManager
insteadorg.hibernate.ejb.HibernateEntityManagerFactory UseHibernateEntityManagerFactory
insteadorg.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 separateServiceContributor
should 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 UseCallbackRegistrar
instead.org.hibernate.jpa.event.spi.jpa.ExtendedBeanManager UseExtendedBeanManager
insteadorg.hibernate.jpa.event.spi.jpa.ExtendedBeanManager.LifecycleListener UseExtendedBeanManager.LifecycleListener
insteadorg.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 modelMappingMetamodel
org.hibernate.metadata.CollectionMetadata (since 6.0) Use Hibernate's mapping modelMappingMetamodel
org.hibernate.Metamodel (since 6.0) PreferJpaMetamodel
org.hibernate.metamodel.model.domain.EmbeddedDomainType (since 6.0) UseEmbeddableDomainType
instead. 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) - PreferMappingMetamodel
org.hibernate.persister.entity.Queryable SeeQueryable
org.hibernate.persister.spi.PersisterCreationContext UseRuntimeModelCreationContext
insteadorg.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 UseCacheRegionStatistics
insteadorg.hibernate.transform.ResultTransformer ResultTransformer is no longer supported. It has been split intoTupleTransformer
andResultListTransformer
to 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/useInstantiator
instead. SeeManagedTypeRepresentationStrategy
org.hibernate.tuple.Property Use the directAttribute
hierarchyorg.hibernate.tuple.Tuplizer
-
Enums Enum Description org.hibernate.loader.BatchFetchStyle (since 6.0) : seeBatchLoadSizingStrategy
instead
-
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 introducedForeignKey
instead.org.hibernate.annotations.GeneratorType Most uses can be changed to useValueGenerationType
+AnnotationValueGeneration
org.hibernate.annotations.Index UsingIndex
instead.org.hibernate.annotations.IndexColumn Prefer the standard JPAOrderColumn
annotation 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()