Package org.hibernate.annotations


package org.hibernate.annotations
  • Class
    Description
    Property Access type Prefer the standard Access annotation
    Define a ToOne association pointing to several entity types.
    Defines @Any and @manyToAny metadata
    Defines @Any and @ManyToAny set of metadata.
    Batch size for SQL loading
    Add caching strategy to a root entity or a collection
    Cache concurrency strategy
    Enumeration for the different interaction modes between the session and the Level 2 Cache.
    Apply a cascade strategy on an association
    Cascade types (can override default EJB3 cascades
    Arbitrary SQL check constraints which can be defined at the class, property or collection level
    Describe an identifier column for a bag (ie an idbag) EXPERIMENTAL: the structure of this annotation might slightly change (generator() mix strategy and generator
    Deprecated.
    use @ElementCollection
    Support 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.
    Extends Entity with Hibernate features
    Define the fetching strategy used for the given association
    Fetch options on associations
    Define the fetching strategy profile.
     
     
    Add filters to an entity or a target entity of a collection
    Filter definition
    Array of filter definitions
    Add filters to a join table collection
    Add multiple @FilterJoinTable to a collection
    Add multiple @Filters
    Enumeration extending javax.persistence flush modes.
    Deprecated.
     
    Formula.
    The annotated property is generated by the database
    When should the generation occurs
    Generator annotation describing any kind of Hibernate generator in a detyped manner
    Array of generic generator definitions
    Mark an Entity or a Collection as immutable.
    Define a DB index
    Describe an index column of a List Prefer the standard OrderColumn annotation
     
     
    JoinFormula.
    Define the lazy status of a collection
    Lazy options available for a collection
    Define the lazy status of a ToOne association (ie OneToOne or ManyToOne)
    Lazy options available for a ToOne association
    Loader Annotation for overwriting Hibernate default FIND method
    Defined a ToMany association pointing to different entity types.
    Deprecated.
    Use MapKeyColumn This is the default behavior for Map properties marked as @OneToMany, @ManyToMany or @ElementCollection
    Deprecated.
    Use MapKeyJoinColumn MapKeyJoinColumns This is the default behavior for Map properties marked as @OneToMany, @ManyToMany or @ElementCollection
    Allows defining the type of the key of a persistent map.
    Represent a discriminator value associated to a given entity type
    Extends NamedNativeQueries to hold hibernate NamedNativeQuery objects
    Extends NamedNativeQuery with Hibernate features
    Extends NamedQueries to hold hibernate NamedQuery objects
    Extends NamedQuery with Hibernate features
    This 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 expected
    Actoin to use when an element is not found in DB while beeing expected
    Strategy to use on collections, arrays and on joined subclasses delete OnDelete of secondary tables currently not supported.
    Possible actions on deletes
    Whether 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 one
    Order a collection using SQL ordering (not HQL ordering)
    A parameter definition
    Parameter (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 entity
    Lazy and proxy configuration of a particular class
    Possible checks on Sql Insert, Delete, Update
    Collection sort (Java level sorting)
    Sort strategies
    Optional annotation in conjunction with Version and 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 method
    SqlDelete Annotation for overwriting Hibernate default DELETE ALL method
    SqlInsert Annotation for overwriting Hibernate default INSERT INTO method
    SqlUpdate Annotation for overwriting Hibernate default UPDATE method
    Map 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 secondary
    Plural of Table
    Define an explicit target,a voiding reflection and generics resolving
    Define a tuplizer for an entity or a component
    Define a set of tuplizer for an entity or a component
    hibernate type
    Type definition
    Type definition array
    Where clause to add to the element Entity or target entity of a collection The clause is written in SQL
    Where clause to add to the colleciton join table The clause is written in SQL