Deprecated API
Contents
-
Enums Enum Description org.hibernate.annotations.CacheModeType org.hibernate.annotations.GenerationTime useEventType
andEventTypeSets
insteadorg.hibernate.annotations.LazyCollectionOption - Use the JPA-defined
FetchType.EAGER
instead ofLazyCollection(FALSE)
. - Use static methods of
Hibernate
, for exampleHibernate.size(Collection)
,Hibernate.contains(Collection, Object)
,Hibernate.get(Map, Object)
, orHibernate.remove(Map, Object)
instead ofLazyCollection(EXTRA)
.
org.hibernate.annotations.LazyToOneOption org.hibernate.cfg.MetadataSourceType hbm.xml
mappings are no longer supported, making this attribute irrelevantorg.hibernate.loader.BatchFetchStyle seeBatchLoadSizingStrategy
insteadorg.hibernate.ReplicationMode sinceSession.replicate(Object, ReplicationMode)
is deprecatedorg.hibernate.tuple.GenerationTiming Replaced byEventType
as id-generation has been redefined using the new broader generation approach. - Use the JPA-defined
-
Exceptions Exceptions Description org.hibernate.cfg.RecoverableException Was only ever referenced in a single place, in an extremely dubious way.
-
Enum Constants Enum Constant Description org.hibernate.annotations.CascadeType.DELETE sinceSession.delete(Object)
is deprecatedorg.hibernate.annotations.CascadeType.REPLICATE sinceSession.replicate(Object, ReplicationMode)
is deprecatedorg.hibernate.annotations.CascadeType.SAVE_UPDATE sinceSession.saveOrUpdate(Object)
is deprecatedorg.hibernate.annotations.LazyCollectionOption.EXTRA use operations ofHibernate
org.hibernate.annotations.LazyCollectionOption.FALSE useFetchType.EAGER
org.hibernate.annotations.LazyCollectionOption.TRUE useFetchType.LAZY
org.hibernate.annotations.LazyToOneOption.FALSE useFetchType.EAGER
org.hibernate.annotations.LazyToOneOption.NO_PROXY this setting no longer has any useful effectorg.hibernate.annotations.LazyToOneOption.PROXY useFetchType.LAZY