Package org.hibernate.annotations
package org.hibernate.annotations
-
ClassDescriptionProperty Access type Prefer the standard
AccessannotationDefine a ToOne association pointing to several entity types.Defines @Any and @manyToAny metadataDefines @Any and @ManyToAny set of metadata.Batch size for SQL loadingAdd caching strategy to a root entity or a collectionCache concurrency strategyEnumeration for the different interaction modes between the session and the Level 2 Cache.Apply a cascade strategy on an associationCascade types (can override default EJB3 cascadesArbitrary SQL check constraints which can be defined at the class, property or collection levelDescribe an identifier column for a bag (ie an idbag) EXPERIMENTAL: the structure of this annotation might slightly change (generator() mix strategy and generatorDeprecated.use @ElementCollectionSupport an array of columns.Custom SQL expression used to read the value from and write a value to a column.Plural annotation for @ColumnTransformer.Discriminator formula To be placed at the root entity.Optional annotation to express Hibernate specific discrimintor properties.ExtendsEntitywith Hibernate featuresDefine the fetching strategy used for the given associationFetch options on associationsDefine the fetching strategy profile.Add filters to an entity or a target entity of a collectionFilter definitionArray of filter definitionsAdd filters to a join table collectionAdd multiple @FilterJoinTable to a collectionAdd multiple @FiltersEnumeration extending javax.persistence flush modes.Deprecated.useDiscriminatorOptionsinsteadFormula.The annotated property is generated by the databaseWhen should the generation occursGenerator annotation describing any kind of Hibernate generator in a detyped mannerArray of generic generator definitionsMark an Entity or a Collection as immutable.Define a DB indexDescribe an index column of a List Prefer the standardOrderColumnannotationJoinFormula.Define the lazy status of a collectionLazy options available for a collectionDefine the lazy status of a ToOne association (ie OneToOne or ManyToOne)Lazy options available for a ToOne associationLoader Annotation for overwriting Hibernate default FIND methodDefined a ToMany association pointing to different entity types.Deprecated.UseMapKeyColumnThis is the default behavior for Map properties marked as @OneToMany, @ManyToMany or @ElementCollectionDeprecated.UseMapKeyJoinColumnMapKeyJoinColumnsThis is the default behavior for Map properties marked as @OneToMany, @ManyToMany or @ElementCollectionAllows defining the type of the key of a persistent map.Represent a discriminator value associated to a given entity typeExtendsNamedNativeQueriesto hold hibernate NamedNativeQuery objectsExtendsNamedNativeQuerywith Hibernate featuresExtendsNamedQueriesto hold hibernate NamedQuery objectsExtendsNamedQuerywith Hibernate featuresThis specifies that a property is part of the natural id of the entity.Action to do when an element is not found on a association whiel beeing expectedActoin to use when an element is not found in DB while beeing expectedStrategy to use on collections, arrays and on joined subclasses delete OnDelete of secondary tables currently not supported.Possible actions on deletesWhether or not update entity's version on property's change If the annotation is not present, the property is involved in the optimistic lock srategy (default)Optimistic locking strategy VERSION is the default and recommanded oneOrder a collection using SQL ordering (not HQL ordering)A parameter definitionParameter (basically key/value pattern)Reference the property as a pointer back to the owner (generally the owning entity)Specify a custom persister.Type of available polymorphism for a particular entityLazy and proxy configuration of a particular classPossible checks on Sql Insert, Delete, UpdateCollection sort (Java level sorting)Sort strategiesOptional annotation in conjunction withVersionand timestamp version properties.Where should Hibernate retrieve the value from? From the database, or from the current JVM?SqlDelete Annotation for overwriting Hibernate default DELETE methodSqlDelete Annotation for overwriting Hibernate default DELETE ALL methodSqlInsert Annotation for overwriting Hibernate default INSERT INTO methodSqlUpdate Annotation for overwriting Hibernate default UPDATE methodMap an immutable and read-only entity to a given SQL subselect expression:Ensures that auto-flush happens correctly and that queries against the derived entity do not return stale data.Complementary information to a table either primary or secondaryPlural of TableDefine an explicit target,a voiding reflection and generics resolvingDefine a tuplizer for an entity or a componentDefine a set of tuplizer for an entity or a componenthibernate typeType definitionType definition arrayWhere clause to add to the element Entity or target entity of a collection The clause is written in SQLWhere clause to add to the colleciton join table The clause is written in SQL