Deprecated API
Contents
-
Enums Enum Description org.hibernate.annotations.CacheModeType org.hibernate.annotations.GenerationTime useEventTypeandEventTypeSetsinsteadorg.hibernate.annotations.LazyCollectionOption - Use the JPA-defined
FetchType.EAGERinstead ofLazyCollection(FALSE). - Use static methods of
Hibernate, for exampleHibernate.size(Collection),Hibernate.contains(Collection, Object), orHibernate.get(Map, Object)instead ofLazyCollection(EXTRA).
org.hibernate.annotations.LazyToOneOption org.hibernate.annotations.PolymorphismType sincePolymorphismis deprecatedorg.hibernate.cfg.MetadataSourceType hbm.xmlmappings are no longer supported, making this attribute irrelevantorg.hibernate.loader.BatchFetchStyle seeMultiKeyLoadSizingStrategyinsteadorg.hibernate.ReplicationMode sinceSession.replicate(Object, ReplicationMode)is deprecatedorg.hibernate.tuple.GenerationTiming Replaced byEventTypeas 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.
-
Annotation Types Annotation Type Description org.hibernate.annotations.ForeignKey use the JPA 2.1ForeignKeyannotationorg.hibernate.annotations.GeneratorType ValueGenerationTypeandAnnotationValueGenerationnow provide a much more powerful and typesafe alternativeorg.hibernate.annotations.Index UseIndexinstead.org.hibernate.annotations.IndexColumn org.hibernate.annotations.LazyCollection - Use the JPA-defined
FetchType.EAGERinstead ofLazyCollection(FALSE). - Use static methods of
Hibernate, for exampleHibernate.size(Collection),Hibernate.contains(Collection, Object), orHibernate.get(Map, Object)instead ofLazyCollection(EXTRA).
org.hibernate.annotations.LazyToOne use JPA annotations to specify theFetchTypeorg.hibernate.annotations.Loader org.hibernate.annotations.Persister Alternative depends on reason for custom persisterorg.hibernate.annotations.Polymorphism This annotation is hardly ever useful.org.hibernate.annotations.Proxy This annotation is almost never useful.org.hibernate.annotations.SelectBeforeUpdate SinceSession.update(Object)is deprecatedorg.hibernate.annotations.Source useCurrentTimestampinsteadorg.hibernate.annotations.Table The options available here are all now offered by other newer and better-designed annotations in this package. This annotation will soon be removed, since it's very annoying to have two annotations named@Table.org.hibernate.annotations.Tables sinceTableis deprecatedorg.hibernate.annotations.Target use annotation members of JPA association mapping annotations, for example,OneToMany.targetEntity() - Use the JPA-defined
-
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 ofHibernateorg.hibernate.annotations.LazyCollectionOption.FALSE useFetchType.EAGERorg.hibernate.annotations.LazyCollectionOption.TRUE useFetchType.LAZYorg.hibernate.annotations.LazyToOneOption.FALSE useFetchType.EAGERorg.hibernate.annotations.LazyToOneOption.NO_PROXY this setting no longer has any useful effectorg.hibernate.annotations.LazyToOneOption.PROXY useFetchType.LAZY