程序包的使用
org.hibernate.annotations
-
使用org.hibernate.annotations的程序包 程序包 说明 org.hibernate.annotations Package containing all the Hibernate specific annotations.org.hibernate.boot.internal org.hibernate.boot.spi org.hibernate.cfg This package defines APIs for configuring Hibernate, and classes for building the Hibernate configuration-time metamodel.org.hibernate.cfg.annotations org.hibernate.tuple This package defines a runtime metamodel for entities at the object level and abstracts the differences between the various entity modes. -
org.hibernate.annotations使用的org.hibernate.annotations中的类 类 说明 AnyMetaDef CacheConcurrencyStrategy Cache concurrency strategy.CacheModeType Enumeration for the different interaction modes between the session and the Level 2 Cache.CascadeType Cascade types (can override default JPA cascades).ColumnTransformer Custom SQL expression used to read the value from and write a value to a column.FetchMode Fetch options on associations.FetchProfile Define the fetching strategy profile.FetchProfile.FetchOverride Descriptor for a particular association override.Filter Add filters to an entity or a target entity of a collection.FilterDef Filter definition.FilterJoinTable Add filters to a join table collection.FlushModeType Enumeration extending javax.persistence flush modes.ForeignKey 已过时。Prefer the JPA 2.1 introducedForeignKeyinstead.GenerationTime At what time(s) will the generation occur?GenericGenerator Generator annotation describing any kind of Hibernate generator in a generic (de-typed) manner.Index 已过时。UsingIndexinstead.JoinColumnOrFormula Allows joins based on column or a formula.JoinFormula To be used as a replacement for@JoinColumnin most places.LazyCollectionOption Lazy options available for a collection.LazyToOneOption Lazy options available for a ToOne association.MetaValue Maps a given discriminator value to the corresponding entity type.NamedNativeQuery ExtendsNamedNativeQuerywith Hibernate features.NamedQuery ExtendsNamedQuerywith Hibernate features.NotFoundAction Possible actions when an associated entity is not found in the database.OnDeleteAction Possible actions for on-delete.OptimisticLockType Possible optimistic locking strategies.ParamDef A parameter definition.Parameter Generic parameter (basically a key/value combination) used to parametrize other annotations.PolymorphismType Type of available polymorphism for a particular entity.ResultCheckStyle Possible styles of checking return codes on SQL INSERT, UPDATE and DELETE queries.SortType 已过时。SinceSortis deprecated.SourceType Where should Hibernate retrieve the value from?SQLDelete Custom SQL statement for delete of an entity/collection.SqlFragmentAlias Describe aliases for filters.SQLInsert Custom SQL statement for insertion of an entity/collection.SQLUpdate Custom SQL statement for update of an entity/collection.Table Complementary information to a table either primary or secondary.Tuplizer Define a tuplizer for an entity or a component.Type Defines a Hibernate type mapping.TypeDef A type definition.ValueGenerationType Marks an annotation type as a generator annotation type. -
org.hibernate.boot.internal使用的org.hibernate.annotations中的类 类 说明 AnyMetaDef -
org.hibernate.boot.spi使用的org.hibernate.annotations中的类 类 说明 AnyMetaDef -
org.hibernate.cfg使用的org.hibernate.annotations中的类 类 说明 DiscriminatorFormula Used to apply a Hibernate formula (derived value) as the inheritance discriminator "column".FetchProfile.FetchOverride Descriptor for a particular association override.Formula Defines a formula (derived value) which is a SQL fragment that acts as a @Column alternative in most cases.Index 已过时。UsingIndexinstead.IndexColumn 已过时。Prefer the standard JPAOrderColumnannotation and the Hibernate specificListIndexBase(for replacingIndexColumn.base()).JoinColumnOrFormula Allows joins based on column or a formula.JoinFormula To be used as a replacement for@JoinColumnin most places.SqlFragmentAlias Describe aliases for filters. -
org.hibernate.cfg.annotations使用的org.hibernate.annotations中的类 类 说明 BatchSize Defines size for batch loading of collections or lazy entities.Cache Add caching strategy to a root entity or a collection.CacheConcurrencyStrategy Cache concurrency strategy.Entity 已过时。See individual attributes for intended replacements.Filter Add filters to an entity or a target entity of a collection.Index 已过时。UsingIndexinstead.NamedNativeQueries A grouping of Hibernate-specificNamedNativeQuerydefinitions.NamedNativeQuery ExtendsNamedNativeQuerywith Hibernate features.NamedQueries A grouping of Hibernate-specificNamedQuerydefinitions.NamedQuery ExtendsNamedQuerywith Hibernate features.OrderBy Order a collection using SQL ordering (not HQL ordering).Proxy Lazy and proxy configuration of a particular class.Sort 已过时。UseSortComparatororSortNaturalinstead depending on need.SortComparator Specifies in-memory Set/Map sorting using a specifiedComparatorfor sorting.SortNatural Specifies in-memory Set/Map sorting using natural sorting.Table Complementary information to a table either primary or secondary.Tables A grouping of tables.Type Defines a Hibernate type mapping.Where Where clause to add to the element Entity or target entity of a collection. -
org.hibernate.tuple使用的org.hibernate.annotations中的类 类 说明 CreationTimestamp Marks a property as the creation timestamp of the containing entity.Generated The annotated property is generated by the database.GeneratorType Marks a property as generated, specifying theValueGeneratortype to be used for generating the value.UpdateTimestamp Marks a property as the update timestamp of the containing entity.