Deprecated API
Contents
-
Enums Enum Description org.hibernate.annotations.SortType SinceSortis 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 UseMappingNotFoundExceptioninstead.org.hibernate.OptimisticLockException UseOptimisticEntityLockExceptioninsteadorg.hibernate.tool.hbm2ddl.ImportScriptException Everything in this package has been replaced withSchemaManagementTooland friends.
-
Annotation Types Annotation Type Description org.hibernate.annotations.AccessType UseAttributeAccessorinstead; renamed to avoid confusion with the JPAAccessTypeenum.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 introducedForeignKeyinstead.org.hibernate.annotations.Index UsingIndexinstead.org.hibernate.annotations.IndexColumn Prefer the standard JPAOrderColumnannotation and the Hibernate specificListIndexBase(for replacingIndexColumn.base()).org.hibernate.annotations.MapKeyType 6.0 will introduce a new type-safeCustomTypeannotationorg.hibernate.annotations.Sort UseSortComparatororSortNaturalinstead 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() useDynamicInsertinsteadorg.hibernate.annotations.Entity.dynamicUpdate() UseDynamicUpdateinsteadorg.hibernate.annotations.Entity.mutable() useImmutableorg.hibernate.annotations.Entity.optimisticLock() useOptimisticLockinginstead.org.hibernate.annotations.Entity.persister() usePersisterinsteadorg.hibernate.annotations.Entity.polymorphism() usePolymorphisminsteadorg.hibernate.annotations.Entity.selectBeforeUpdate() UseSelectBeforeUpdateinsteadorg.hibernate.annotations.Tuplizer.entityMode() should use #entityModeType instead