Deprecated API
Contents
-
Enums Enum Description org.hibernate.annotations.SortType SinceSort
is deprecated.org.hibernate.secure.spi.PermissibleAction Support for JACC will be removed in 6.0
-
Exceptions Exceptions Description org.hibernate.cfg.RecoverableException Was only ever referenced in a single place, in an extremely dubious way.org.hibernate.MappingNotFoundException UseMappingNotFoundException
instead.org.hibernate.OptimisticLockException UseOptimisticEntityLockException
insteadorg.hibernate.tool.hbm2ddl.ImportScriptException Everything in this package has been replaced withSchemaManagementTool
and friends.
-
Annotation Types Annotation Type Description org.hibernate.annotations.AccessType UseAttributeAccessor
instead; renamed to avoid confusion with the JPAAccessType
enum.org.hibernate.annotations.AnyMetaDef To be removed in 6.0org.hibernate.annotations.AnyMetaDefs To be removed in 6.0org.hibernate.annotations.CollectionType Custom handling for "collection types" will be handled differently in 6.0org.hibernate.annotations.Entity See individual attributes for intended replacements. To be removed in 4.1org.hibernate.annotations.ForeignKey Prefer the JPA 2.1 introducedForeignKey
instead.org.hibernate.annotations.Index UsingIndex
instead.org.hibernate.annotations.IndexColumn Prefer the standard JPAOrderColumn
annotation and the Hibernate specificListIndexBase
(for replacingIndexColumn.base()
).org.hibernate.annotations.MapKeyType 6.0 will introduce a new type-safeCustomType
annotationorg.hibernate.annotations.Sort UseSortComparator
orSortNatural
instead depending on need.
-
Enum Constants Enum Constant Description org.hibernate.annotations.CascadeType.DELETE_ORPHAN use @OneToOne(orphanRemoval=true) or @OneToMany(orphanRemoval=true)org.hibernate.annotations.CascadeType.EVICT org.hibernate.annotations.FlushModeType.NEVER use MANUAL, will be removed in a subsequent releaseorg.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.CollectionId.columns() Only basic (single column) collection-ids are supported. UseCollectionId.column()
insteadorg.hibernate.annotations.Entity.dynamicInsert() useDynamicInsert
insteadorg.hibernate.annotations.Entity.dynamicUpdate() UseDynamicUpdate
insteadorg.hibernate.annotations.Entity.mutable() useImmutable
org.hibernate.annotations.Entity.optimisticLock() useOptimisticLocking
instead.org.hibernate.annotations.Entity.persister() usePersister
insteadorg.hibernate.annotations.Entity.polymorphism() usePolymorphism
insteadorg.hibernate.annotations.Entity.selectBeforeUpdate() UseSelectBeforeUpdate
insteadorg.hibernate.annotations.Tuplizer.entityMode() should use #entityModeType instead