Uses of Package
org.hibernate.annotations
Packages that use org.hibernate.annotations
Package
Description
A set of mapping annotations which extend the O/R mapping annotations defined by JPA.
Built-in implementations of
AttributeBinder
and TypeBinder.This package contains the interfaces that make up the bootstrap API
for Hibernate.
Overall, this module is responsible for taking
managed-resources and
building the
hibernate-models model (ClassDetails, etc.)
to ultimately be bound into Hibernate's boot-time model.Support for processing mapping XML files and applying annotation references over the appropriate
classes,
fields and
methods.
A range of SPIs allowing integration with—and customization of—the process of building metadata.
This package contains classes which are "shared" by other subsystems,
and implementations of some key algorithms.
This package defines some central internal SPI abstractions
used throughout the implementation of Hibernate.
This package and its subpackages, especially
org.hibernate.id.enhanced,
contain the built-in id generators, all of which implement either
IdentifierGenerator or
PostInsertIdentifierGenerator.Contains the
UuidGenerator.This package defines the Hibernate configuration-time mapping model.
Defines the runtime mapping metamodel, which describes the mapping
of the application's domain model parts (entities, attributes) to
relational database objects (tables, columns).
Most contracts here have been replaced by the new runtime
mapping model.
A Hibernate
Type is a strategy for mapping a Java
property type to a JDBC type or types.-
Classes in org.hibernate.annotations used by org.hibernate.annotationsClassDescriptionAssociates a user-defined annotation with an
AttributeBinder, allowing the annotation to drive some custom model binding.Identifies policies for managing concurrent access to the shared second-level cache.Describes the data layout used for storing an object into the query cache.Deprecated, for removal: This API element is subject to removal in a future version.Marks an annotation type as a dialect-specific override for some other annotation type.Enumerates methods for fetching an association from the database.Deprecated, for removal: This API element is subject to removal in a future version.UseQueryFlushMode.Meta-annotation used to mark another annotation as providing configuration for a custom identifier generator.Specifies how Hibernate should handle the case of an orphaned foreign key with no associated row in the referenced table.Enumerates the possible actions for theon deleteclause of a foreign key constraint.Enumerates the possible optimistic lock checking strategies.Deprecated, for removal: This API element is subject to removal in a future version.Use anExpectationclass instead.Enumeration of defines styles of soft-deleteSpecifies the source of a generated value, either the virtual machine, or the database.Describes the storage of timezone information for zoned datetime types, in particular, for the typesOffsetDateTimeandZonedDateTime.Associates a user-defined annotation with aTypeBinder, allowing the annotation to drive some custom model binding.Represents a kind of UUID, that is, what RFC 4122 calls a "version".Meta-annotation used to mark another annotation as providing configuration for a custom value generation strategy. -
Classes in org.hibernate.annotations used by org.hibernate.binder.internalClassDescriptionSpecifies an attribute access strategy to use.Specifies a maximum batch size for batch fetching of the annotated entity or collection.Specifies a collation to use when generating DDL for the column mapped by the annotated field or property.Deprecated.Prefer
Table.comment(),Column.comment(), etc.Deprecated.Per Comment, prefer Table.comment()Optional annotation used in conjunction with the JPA-definedDiscriminatorColumnannotation to express Hibernate-specific discriminator properties.Identifies a field of an entity that holds a tenant id in discriminator-based multitenancy. -
Classes in org.hibernate.annotations used by org.hibernate.bootClassDescriptionDescribes the data layout used for storing an object into the query cache.
-
Classes in org.hibernate.annotations used by org.hibernate.boot.internalClassDescriptionDescribes the data layout used for storing an object into the query cache.Deprecated, for removal: This API element is subject to removal in a future version.Use the JPA-defined
CascadeType.Allows to register aUserCollectionTypeto use as the default for the specified classification of collection. -
Classes in org.hibernate.annotations used by org.hibernate.boot.jaxb.mapping.internalClassDescriptionEnumerates methods for fetching an association from the database.Specifies how Hibernate should handle the case of an orphaned foreign key with no associated row in the referenced table.Enumerates the possible actions for the
on deleteclause of a foreign key constraint.Represents a kind of UUID, that is, what RFC 4122 calls a "version". -
Classes in org.hibernate.annotations used by org.hibernate.boot.jaxb.mapping.spiClassDescriptionSpecifies how Hibernate should handle the case of an orphaned foreign key with no associated row in the referenced table.Enumerates the possible actions for the
on deleteclause of a foreign key constraint.Represents a kind of UUID, that is, what RFC 4122 calls a "version". -
Classes in org.hibernate.annotations used by org.hibernate.boot.model.internalClassDescriptionDefines how to handle discriminator values which are not explicitly mapped with AnyDiscriminatorValue.Identifies policies for managing concurrent access to the shared second-level cache.Deprecated, for removal: This API element is subject to removal in a future version.Use the JPA-defined
CascadeTypeDeprecated, for removal: This API element is subject to removal in a future version.Use the JPA-definedCascadeType.Specifies custom SQL expressions used to read and write to the column mapped by the annotated persistent attribute in all generated SQL involving the annotated persistent attribute.Specifies an expression written in native SQL as the discriminator for an entity inheritance hierarchy.Overrides the fetching strategy for a particular association in the named fetch profile being defined.Overrides the fetching strategy for the annotated association in a certain named fetch profile.Declares a filter, specifying its FilterDef.name(), optionally, a default condition, and its parameter names and types, if it has parameters.Specifies an expression written in native SQL that is used to read the value of an attribute instead of storing the value in aColumn.Deprecated, for removal: This API element is subject to removal in a future version.UseColumn.secondPrecision()which was introduced in JPA 3.2Deprecated, for removal: This API element is subject to removal in a future version.Use the new approach based onIdGeneratorType.Specifies a custom HQL/JPQL query to be used in place of the default SQL generated by Hibernate when an entity or collection is fetched from the database by id.Specifies a join condition based on an arbitrary native SQL formula instead of a column name.Specifies the base value for the order column of a persistent list or array, that is, the order column value of the first element of the list or array.Declares a named query written in native SQL.Declares a named query written in HQL or JPQL.Specifies how Hibernate should handle the case of an orphaned foreign key with no associated row in the referenced table.Enumerates the possible actions for theon deleteclause of a foreign key constraint.Generic parameter (a key/value pair) used to parametrize other annotations.Describes a soft-delete indicator mapping.Defines an interpolated alias occurring in a SQL filter condition.Specifies a custom SQL query to be used in place of the default SQL generated by Hibernate when an entity or collection is loaded from the database by id. -
Classes in org.hibernate.annotations used by org.hibernate.boot.model.process.internalClassDescriptionDescribes the storage of timezone information for zoned datetime types, in particular, for the types
OffsetDateTimeandZonedDateTime. -
Classes in org.hibernate.annotations used by org.hibernate.boot.model.source.internalClassDescriptionDeprecated, for removal: This API element is subject to removal in a future version.Use the JPA-defined
CascadeType. -
Classes in org.hibernate.annotations used by org.hibernate.boot.modelsClassDescriptionMaps a to-one cardinality association taking values over several entity types which are not related by the usual entity inheritance, using a discriminator value stored on the referring side of the relationship.A simplified way to specify the type of the discriminator in an
Anymapping, using the JPA-definedDiscriminatorType.Defines how to handle discriminator values which are not explicitly mapped with AnyDiscriminatorValue.Specifies the mapping of a single any-valued discriminator value to its corresponding entity type.List ofAnyDiscriminatorValues.Specifies the Java class to use for the foreign key handling related to anAnymapping.Form ofJavaTypeused to describe the foreign-key part of an ANY mapping.Form ofJdbcTypeCodeused to describe the foreign key part of anAnymapping.Specifies the maximum length of a SQL array type mapped by the annotated attribute.Specifies an attribute access strategy to use.Associates a user-defined annotation with anAttributeBinder, allowing the annotation to drive some custom model binding.Specifies a maximum batch size for batch fetching of the annotated entity or collection.Marks a root entity or collection for second-level caching, and specifies: a named cache region in which to store the state of instances of the entity or collection, and an appropriate cache concurrency policy, given the expected data access patterns affecting the entity or collection.Deprecated, for removal: This API element is subject to removal in a future version.Use the JPA-definedCascadeTypeDeprecated.Deprecated.sinceCheckis deprecated.Specifies a collation to use when generating DDL for the column mapped by the annotated field or property.Describe the identifier for an id-bag.Specifies the Java class to use for the id of an id-bag mapping.Form ofJavaTypefor describing the id of an id-bag mapping.Form ofJdbcTypefor describing the id of an id-bag mapping.Form ofJdbcTypeCodefor describing the id of an id-bag mapping.Form ofMutabilityfor describing the id of an id-bag mappingForm ofTypefor describing the id of an id-bag mapping.Names a custom collection type for a persistent collection.Allows to register aUserCollectionTypeto use as the default for the specified classification of collection.Repeatable container forCollectionTypeRegistrationSpecifies that a column has adefaultvalue specified in DDL.Support an array of columns.Specifies custom SQL expressions used to read and write to the column mapped by the annotated persistent attribute in all generated SQL involving the annotated persistent attribute.Plural annotation for @ColumnTransformer.Deprecated.PreferTable.comment(),Column.comment(), etc.Deprecated.Per Comment, prefer Table.comment()Specifies a customCompositeUserTypefor the annotated attribute mapping.Registers a custom composite user type implementation to be used by default for all references to a particular embeddable class.Grouping ofCompositeTypeRegistrationAnnotatingConcreteProxyon the root entity class of an inheritance hierarchy will allow types of that hierarchy to always produce proxies that resolve to the concrete subtype class.Registers anAttributeConverter.Specifies that the annotated field of property is a generated creation timestamp.Specifies that the annotated field of property is a generated timestamp, and also specifies the timing of the timestamp generation, and whether it is generated in Java or by the database:source = VMindicates that the virtual machine current instant is used, andsource = DBindicates that the databasecurrent_timestampfunction should be used.Specializes aCheckin a certain dialect.Specializes aColumnDefaultin a certain dialect.Specializes aDiscriminatorFormulain a certain dialect.SpecializesFilterDefsin a certain dialect.SpecializesFiltersin a certain dialect.Specializes aFormulain a certain dialect.Specializes aGeneratedColumnin a certain dialect.Specializes aJoinFormulain a certain dialect.Specializes aSQLDeletein a certain dialect.Specializes aSQLDeleteAllin a certain dialect.Specializes aSQLInsertin a certain dialect.Specializes anSQLOrderin a certain dialect.Specializes aSQLRestrictionin a certain dialect.Specializes aSQLSelectin a certain dialect.Specializes aSQLUpdatein a certain dialect.Identifies a database version.Specifies an expression written in native SQL as the discriminator for an entity inheritance hierarchy.Optional annotation used in conjunction with the JPA-definedDiscriminatorColumnannotation to express Hibernate-specific discriminator properties.Specifies that SQLinsertstatements for the annotated entity are generated dynamically, and only include the columns to which a non-null value must be assigned.Specifies that SQLupdatestatements for the annotated entity are generated dynamically, and only include columns which are actually being updated.Specifies a custom instantiator for a specific embeddedRegisters a custom instantiator implementation to be used for all references to a particularEmbeddable.Grouping ofEmbeddableInstantiatorRegistrationAllows specifying a pattern to be applied to the naming of columns for a particular embedded mapping.Specifies the default fetching method for the annotated association.Defines a fetch profile, by specifying itsFetchProfile.name(), together with a list of fetch strategy overrides.Overrides the fetching strategy for the annotated association in a certain named fetch profile.A group ofFetchProfileOverrides.Collects together multiple fetch profiles.Specifies that an entity or collection is affected by a named filter declared using@FilterDef, and allows the default filter condition to be overridden for the annotated entity or collection role.Declares a filter, specifying its FilterDef.name(), optionally, a default condition, and its parameter names and types, if it has parameters.Array of filter definitions.Specifies that the join table of a collection is affected by a named filter declared usingFilterDef, and allows the default filter condition to be overridden for the annotated entity or collection role.Add multiple@FilterJoinTableto a collection.Add multiple@Filters.Specifies an expression written in native SQL that is used to read the value of an attribute instead of storing the value in aColumn.Deprecated, for removal: This API element is subject to removal in a future version.UseColumn.secondPrecision()which was introduced in JPA 3.2Specifies that the value of the annotated property is generated by the database.Specifies that a column is defined using a DDLgenerated always asclause or equivalent, and that Hibernate should fetch the generated value from the database after each SQLINSERTorUPDATE.Deprecated, for removal: This API element is subject to removal in a future version.Use the new approach based onIdGeneratorType.Deprecated, for removal: This API element is subject to removal in a future version.sinceGenericGeneratoris deprecated.Specifies a custom HQL/JPQL query to be used in place of the default SQL generated by Hibernate when an entity or collection is fetched from the database by id.Meta-annotation used to mark another annotation as providing configuration for a custom identifier generator.Marks an entity, collection, or attribute of an entity as immutable.Marks an arbitrary class as available for use in HQL queries by its unqualified name.Marks the canonical constructor to be used for instantiation of an embeddable.Specify an explicitBasicJavaTypeto use for a particular column mapping.Registers aBasicJavaTypeas the default Java type descriptor for the givenJavaTypeRegistration.javaType().Grouping ofJavaTypeRegistrationSee notes onJavaTypeRegistrationabout using on packages versus use on classesSpecifies an explicitJdbcTypeto use for a particular column mapping. When applied to a Map-valued attribute, describes the Map value.Specifies the JDBC type-code to use for the column mapping. When applied to a Map-valued attribute, describes the Map value.Grouping ofJdbcTypeRegistrationSee notes onJdbcTypeRegistrationabout using on packages versus use on classesSpecifies a join condition based on an arbitrary native SQL formula instead of a column name.Specifies the fetch group for a persistent attribute of an entity class.Specifies the base value for the order column of a persistent list or array, that is, the order column value of the first element of the list or array.Form ofJavaTypefor describing the column mapping for the index of aListor array.Form ofJdbcTypefor describing the column mapping for the index of aListor array.Form ofJdbcTypeCodefor describing the column mapping for the index of aListor array.Maps a to-many cardinality association taking values over several entity types which are not related by the usual entity inheritance, using a discriminator value stored in an association table.Form ofCompositeTypefor use with map-keysForm ofJavaTypefor describing the key of a MapForm ofJdbcTypefor describing the key of a MapForm ofJdbcTypeCodefor describing the key of a MapForm ofMutabilityfor describing the key of a MapForm ofTypefor use with map keys.Specifies aMutabilityPlanfor a basic value mapping.Defines a named entity graph based on Hibernate's entity graph language.A grouping ofNamedEntityGraphdefinitions.A grouping ofNamedNativeQuerydefinitions.Declares a named query written in native SQL.A grouping ofNamedQuerydefinitions.Declares a named query written in HQL or JPQL.Specifies that the annotated character data should be stored with nationalization support.Generator that picks a strategy based on the dialect.Specifies that a field or property of an entity class is part of the natural id of the entity.Specifies that mappings from the natural id values of the annotated entity to the corresponding entity id values should be cached in the shared second-level cache.Indicates that a many to one, one to one, or many to many association maps to a column holding foreign keys, but without a foreign key constraint, and which may therefore violate referential integrity.Specifies anon deleteaction for a foreign key constraint.Specifies whether mutating the annotated attribute should trigger an increment to the version of the entity instance.Specifies how optimistic lock checking works for the annotated entity.Details about a parameter declared in aFilterDef.Generic parameter (a key/value pair) used to parametrize other annotations.Reference the property as a pointer back to the owner (generally the owning entity).Identifies a field of an entity that holds the partition key of a table mapped by the entity class.Allows to specify the target of a foreign-key using a "target attribute" as opposed to join column(s).Configures the layout for the entity or collection data in a query cache.Specifies that arowid-like column or pseudo-column should be used as the row locator in CRUD operations for an entity, instead of the primary key of the table.Specifies how the row of aSecondaryTableshould be managed.A grouping ofSecondaryRows.Describes a soft-delete indicator mapping.Deprecated, for removal: This API element is subject to removal in a future version.useCurrentTimestampinsteadSpecifies a custom SQL DML statement to be used in place of the default SQL generated by Hibernate when an entity or collection row is deleted from the database.Specifies a custom SQL DML statement to be used in place of the default SQL generated by Hibernate when an entire collection is deleted from the database.A grouping ofSQLDeletes.Defines an interpolated alias occurring in a SQL filter condition.Specifies a custom SQL DML statement to be used in place of the default SQL generated by Hibernate when an entity or collection row is inserted in the database.A grouping ofSQLInserts.Specifies a restriction written in native SQL to add to the generated SQL when querying the join table of a collection.Order a collection using an expression or list of expression written in native SQL.Specifies a restriction written in native SQL to add to the generated SQL for entities or collections.Specifies a custom SQL query to be used in place of the default SQL generated by Hibernate when an entity or collection is loaded from the database by id.Specifies a custom SQL DML statement to be used in place of the default SQL generated by Hibernate when an entity or collection row is updated in the database.A grouping ofSQLUpdates.Specifies the UDT (user defined type) name for the annotated embeddable type or embedded attribute.Maps an immutable and read-only entity to a given SQLselectexpression.Specifies a table or tables that hold state mapped by the annotated entity or collection.Specifies the target type for aEmbeddedentity property.Identifies a field of an entity that holds a tenant id in discriminator-based multitenancy.Specifies the mapped column for storing the time zone information, for use in conjunction withTimeZoneStorageType.COLUMNorTimeZoneStorageType.AUTO.Specifies how the time zone information of a persistent property or field should be persisted.Specifies a customUserTypefor the annotated attribute mapping.Associates a user-defined annotation with aTypeBinder, allowing the annotation to drive some custom model binding.Registers a custom user type implementation to be used by default for all references to a particular class of basic type.Grouping ofTypeRegistrationSpecifies that the annotated field of property is a generated update timestamp. The timestamp is regenerated every time an entity instance is updated in the database.Specifies that an entity identifier is generated as an IETF RFC 4122 UUID.Meta-annotation used to mark another annotation as providing configuration for a custom value generation strategy.Maps an entity to a database view. -
Classes in org.hibernate.annotations used by org.hibernate.boot.models.annotations.internalClassDescriptionMaps a to-one cardinality association taking values over several entity types which are not related by the usual entity inheritance, using a discriminator value stored on the referring side of the relationship.A simplified way to specify the type of the discriminator in an
Anymapping, using the JPA-definedDiscriminatorType.Defines how to handle discriminator values which are not explicitly mapped with AnyDiscriminatorValue.Specifies the mapping of a single any-valued discriminator value to its corresponding entity type.List ofAnyDiscriminatorValues.Specifies the Java class to use for the foreign key handling related to anAnymapping.Form ofJavaTypeused to describe the foreign-key part of an ANY mapping.Form ofJdbcTypeCodeused to describe the foreign key part of anAnymapping.Specifies the maximum length of a SQL array type mapped by the annotated attribute.Specifies an attribute access strategy to use.Associates a user-defined annotation with anAttributeBinder, allowing the annotation to drive some custom model binding.Specifies a maximum batch size for batch fetching of the annotated entity or collection.Marks a root entity or collection for second-level caching, and specifies: a named cache region in which to store the state of instances of the entity or collection, and an appropriate cache concurrency policy, given the expected data access patterns affecting the entity or collection.Identifies policies for managing concurrent access to the shared second-level cache.Describes the data layout used for storing an object into the query cache.Deprecated, for removal: This API element is subject to removal in a future version.Use the JPA-definedCascadeTypeDeprecated, for removal: This API element is subject to removal in a future version.Use the JPA-definedCascadeType.Deprecated.Deprecated.sinceCheckis deprecated.Specifies a collation to use when generating DDL for the column mapped by the annotated field or property.Describe the identifier for an id-bag.Specifies the Java class to use for the id of an id-bag mapping.Form ofJavaTypefor describing the id of an id-bag mapping.Form ofJdbcTypefor describing the id of an id-bag mapping.Form ofJdbcTypeCodefor describing the id of an id-bag mapping.Form ofMutabilityfor describing the id of an id-bag mappingForm ofTypefor describing the id of an id-bag mapping.Names a custom collection type for a persistent collection.Allows to register aUserCollectionTypeto use as the default for the specified classification of collection.Repeatable container forCollectionTypeRegistrationSpecifies that a column has adefaultvalue specified in DDL.Support an array of columns.Specifies custom SQL expressions used to read and write to the column mapped by the annotated persistent attribute in all generated SQL involving the annotated persistent attribute.Plural annotation for @ColumnTransformer.Deprecated.PreferTable.comment(),Column.comment(), etc.Deprecated.Per Comment, prefer Table.comment()Specifies a customCompositeUserTypefor the annotated attribute mapping.Registers a custom composite user type implementation to be used by default for all references to a particular embeddable class.Grouping ofCompositeTypeRegistrationAnnotatingConcreteProxyon the root entity class of an inheritance hierarchy will allow types of that hierarchy to always produce proxies that resolve to the concrete subtype class.Registers anAttributeConverter.Specifies that the annotated field of property is a generated creation timestamp.Specifies that the annotated field of property is a generated timestamp, and also specifies the timing of the timestamp generation, and whether it is generated in Java or by the database:source = VMindicates that the virtual machine current instant is used, andsource = DBindicates that the databasecurrent_timestampfunction should be used.Specializes aCheckin a certain dialect.Specializes aColumnDefaultin a certain dialect.Specializes aDiscriminatorFormulain a certain dialect.SpecializesFilterDefsin a certain dialect.SpecializesFiltersin a certain dialect.Specializes aFormulain a certain dialect.Specializes aGeneratedColumnin a certain dialect.Specializes aJoinFormulain a certain dialect.Specializes aSQLDeletein a certain dialect.Specializes aSQLDeleteAllin a certain dialect.Specializes aSQLInsertin a certain dialect.Specializes anSQLOrderin a certain dialect.Specializes aSQLRestrictionin a certain dialect.Specializes aSQLSelectin a certain dialect.Specializes aSQLUpdatein a certain dialect.Identifies a database version.Specifies an expression written in native SQL as the discriminator for an entity inheritance hierarchy.Optional annotation used in conjunction with the JPA-definedDiscriminatorColumnannotation to express Hibernate-specific discriminator properties.Specifies that SQLinsertstatements for the annotated entity are generated dynamically, and only include the columns to which a non-null value must be assigned.Specifies that SQLupdatestatements for the annotated entity are generated dynamically, and only include columns which are actually being updated.Specifies a custom instantiator for a specific embeddedRegisters a custom instantiator implementation to be used for all references to a particularEmbeddable.Grouping ofEmbeddableInstantiatorRegistrationAllows specifying a pattern to be applied to the naming of columns for a particular embedded mapping.Specifies the default fetching method for the annotated association.Enumerates methods for fetching an association from the database.Defines a fetch profile, by specifying itsFetchProfile.name(), together with a list of fetch strategy overrides.Overrides the fetching strategy for a particular association in the named fetch profile being defined.Overrides the fetching strategy for the annotated association in a certain named fetch profile.A group ofFetchProfileOverrides.Collects together multiple fetch profiles.Specifies that an entity or collection is affected by a named filter declared using@FilterDef, and allows the default filter condition to be overridden for the annotated entity or collection role.Declares a filter, specifying its FilterDef.name(), optionally, a default condition, and its parameter names and types, if it has parameters.Array of filter definitions.Specifies that the join table of a collection is affected by a named filter declared usingFilterDef, and allows the default filter condition to be overridden for the annotated entity or collection role.Add multiple@FilterJoinTableto a collection.Add multiple@Filters.Deprecated, for removal: This API element is subject to removal in a future version.UseQueryFlushMode.Specifies an expression written in native SQL that is used to read the value of an attribute instead of storing the value in aColumn.Deprecated, for removal: This API element is subject to removal in a future version.UseColumn.secondPrecision()which was introduced in JPA 3.2Specifies that the value of the annotated property is generated by the database.Specifies that a column is defined using a DDLgenerated always asclause or equivalent, and that Hibernate should fetch the generated value from the database after each SQLINSERTorUPDATE.Deprecated, for removal: This API element is subject to removal in a future version.Use the new approach based onIdGeneratorType.Deprecated, for removal: This API element is subject to removal in a future version.sinceGenericGeneratoris deprecated.Specifies a custom HQL/JPQL query to be used in place of the default SQL generated by Hibernate when an entity or collection is fetched from the database by id.Meta-annotation used to mark another annotation as providing configuration for a custom identifier generator.Marks an entity, collection, or attribute of an entity as immutable.Marks an arbitrary class as available for use in HQL queries by its unqualified name.Marks the canonical constructor to be used for instantiation of an embeddable.Specify an explicitBasicJavaTypeto use for a particular column mapping.Registers aBasicJavaTypeas the default Java type descriptor for the givenJavaTypeRegistration.javaType().Grouping ofJavaTypeRegistrationSee notes onJavaTypeRegistrationabout using on packages versus use on classesSpecifies an explicitJdbcTypeto use for a particular column mapping. When applied to a Map-valued attribute, describes the Map value.Specifies the JDBC type-code to use for the column mapping. When applied to a Map-valued attribute, describes the Map value.Grouping ofJdbcTypeRegistrationSee notes onJdbcTypeRegistrationabout using on packages versus use on classesSpecifies a join condition based on an arbitrary native SQL formula instead of a column name.Specifies the fetch group for a persistent attribute of an entity class.Specifies the base value for the order column of a persistent list or array, that is, the order column value of the first element of the list or array.Form ofJavaTypefor describing the column mapping for the index of aListor array.Form ofJdbcTypefor describing the column mapping for the index of aListor array.Form ofJdbcTypeCodefor describing the column mapping for the index of aListor array.Maps a to-many cardinality association taking values over several entity types which are not related by the usual entity inheritance, using a discriminator value stored in an association table.Form ofCompositeTypefor use with map-keysForm ofJavaTypefor describing the key of a MapForm ofJdbcTypefor describing the key of a MapForm ofJdbcTypeCodefor describing the key of a MapForm ofMutabilityfor describing the key of a MapForm ofTypefor use with map keys.Specifies aMutabilityPlanfor a basic value mapping.Defines a named entity graph based on Hibernate's entity graph language.A grouping ofNamedEntityGraphdefinitions.A grouping ofNamedNativeQuerydefinitions.Declares a named query written in native SQL.A grouping ofNamedQuerydefinitions.Declares a named query written in HQL or JPQL.Specifies that the annotated character data should be stored with nationalization support.Generator that picks a strategy based on the dialect.Specifies that a field or property of an entity class is part of the natural id of the entity.Specifies that mappings from the natural id values of the annotated entity to the corresponding entity id values should be cached in the shared second-level cache.Indicates that a many to one, one to one, or many to many association maps to a column holding foreign keys, but without a foreign key constraint, and which may therefore violate referential integrity.Specifies how Hibernate should handle the case of an orphaned foreign key with no associated row in the referenced table.Specifies anon deleteaction for a foreign key constraint.Enumerates the possible actions for theon deleteclause of a foreign key constraint.Specifies whether mutating the annotated attribute should trigger an increment to the version of the entity instance.Specifies how optimistic lock checking works for the annotated entity.Enumerates the possible optimistic lock checking strategies.Details about a parameter declared in aFilterDef.Generic parameter (a key/value pair) used to parametrize other annotations.Reference the property as a pointer back to the owner (generally the owning entity).Identifies a field of an entity that holds the partition key of a table mapped by the entity class.Allows to specify the target of a foreign-key using a "target attribute" as opposed to join column(s).Configures the layout for the entity or collection data in a query cache.Deprecated, for removal: This API element is subject to removal in a future version.Use anExpectationclass instead.Specifies that arowid-like column or pseudo-column should be used as the row locator in CRUD operations for an entity, instead of the primary key of the table.Specifies how the row of aSecondaryTableshould be managed.A grouping ofSecondaryRows.Describes a soft-delete indicator mapping.Enumeration of defines styles of soft-deleteDeprecated, for removal: This API element is subject to removal in a future version.useCurrentTimestampinsteadSpecifies the source of a generated value, either the virtual machine, or the database.Specifies a custom SQL DML statement to be used in place of the default SQL generated by Hibernate when an entity or collection row is deleted from the database.Specifies a custom SQL DML statement to be used in place of the default SQL generated by Hibernate when an entire collection is deleted from the database.A grouping ofSQLDeletes.Defines an interpolated alias occurring in a SQL filter condition.Specifies a custom SQL DML statement to be used in place of the default SQL generated by Hibernate when an entity or collection row is inserted in the database.A grouping ofSQLInserts.Specifies a restriction written in native SQL to add to the generated SQL when querying the join table of a collection.Order a collection using an expression or list of expression written in native SQL.Specifies a restriction written in native SQL to add to the generated SQL for entities or collections.Specifies a custom SQL query to be used in place of the default SQL generated by Hibernate when an entity or collection is loaded from the database by id.Specifies a custom SQL DML statement to be used in place of the default SQL generated by Hibernate when an entity or collection row is updated in the database.A grouping ofSQLUpdates.Specifies the UDT (user defined type) name for the annotated embeddable type or embedded attribute.Maps an immutable and read-only entity to a given SQLselectexpression.Specifies a table or tables that hold state mapped by the annotated entity or collection.Specifies the target type for aEmbeddedentity property.Identifies a field of an entity that holds a tenant id in discriminator-based multitenancy.Specifies the mapped column for storing the time zone information, for use in conjunction withTimeZoneStorageType.COLUMNorTimeZoneStorageType.AUTO.Specifies how the time zone information of a persistent property or field should be persisted.Describes the storage of timezone information for zoned datetime types, in particular, for the typesOffsetDateTimeandZonedDateTime.Specifies a customUserTypefor the annotated attribute mapping.Associates a user-defined annotation with aTypeBinder, allowing the annotation to drive some custom model binding.Registers a custom user type implementation to be used by default for all references to a particular class of basic type.Grouping ofTypeRegistrationSpecifies that the annotated field of property is a generated update timestamp. The timestamp is regenerated every time an entity instance is updated in the database.Specifies that an entity identifier is generated as an IETF RFC 4122 UUID.Represents a kind of UUID, that is, what RFC 4122 calls a "version".Meta-annotation used to mark another annotation as providing configuration for a custom value generation strategy.Maps an entity to a database view. -
Classes in org.hibernate.annotations used by org.hibernate.boot.models.annotations.spiClassDescriptionIdentifies a database version.Deprecated, for removal: This API element is subject to removal in a future version.Use an
Expectationclass instead. -
Classes in org.hibernate.annotations used by org.hibernate.boot.models.internalClassDescriptionDeprecated, for removal: This API element is subject to removal in a future version.Use the new approach based on
IdGeneratorType. -
Classes in org.hibernate.annotations used by org.hibernate.boot.models.spiClassDescriptionDeprecated, for removal: This API element is subject to removal in a future version.Use the new approach based on
IdGeneratorType. -
Classes in org.hibernate.annotations used by org.hibernate.boot.models.xml.internalClassDescriptionDeprecated, for removal: This API element is subject to removal in a future version.Use the JPA-defined
CascadeType.Deprecated, for removal: This API element is subject to removal in a future version.UseQueryFlushMode.Generic parameter (a key/value pair) used to parametrize other annotations.Defines an interpolated alias occurring in a SQL filter condition. -
Classes in org.hibernate.annotations used by org.hibernate.boot.models.xml.internal.attrClassDescriptionEnumerates the possible actions for the
on deleteclause of a foreign key constraint. -
Classes in org.hibernate.annotations used by org.hibernate.boot.models.xml.spiClassDescriptionDeprecated, for removal: This API element is subject to removal in a future version.Use the JPA-defined
CascadeType. -
Classes in org.hibernate.annotations used by org.hibernate.boot.spiClassDescriptionDescribes the data layout used for storing an object into the query cache.Deprecated, for removal: This API element is subject to removal in a future version.Use the JPA-defined
CascadeType.Allows to register aUserCollectionTypeto use as the default for the specified classification of collection. -
Classes in org.hibernate.annotations used by org.hibernate.engine
-
Classes in org.hibernate.annotations used by org.hibernate.engine.spiClassDescriptionDeprecated, for removal: This API element is subject to removal in a future version.Use an
Expectationclass instead. -
Classes in org.hibernate.annotations used by org.hibernate.generator.internalClassDescriptionSpecifies that the annotated field of property is a generated creation timestamp.Specifies that the annotated field of property is a generated timestamp, and also specifies the timing of the timestamp generation, and whether it is generated in Java or by the database:
source = VMindicates that the virtual machine current instant is used, andsource = DBindicates that the databasecurrent_timestampfunction should be used.Specifies that the value of the annotated property is generated by the database.Deprecated, for removal: This API element is subject to removal in a future version.useCurrentTimestampinsteadSpecifies the source of a generated value, either the virtual machine, or the database.Identifies a field of an entity that holds a tenant id in discriminator-based multitenancy.Specifies that the annotated field of property is a generated update timestamp. The timestamp is regenerated every time an entity instance is updated in the database. -
Classes in org.hibernate.annotations used by org.hibernate.id
-
Classes in org.hibernate.annotations used by org.hibernate.id.uuid
-
Classes in org.hibernate.annotations used by org.hibernate.mappingClassDescriptionDescribes the data layout used for storing an object into the query cache.Deprecated, for removal: This API element is subject to removal in a future version.Use the JPA-defined
CascadeType.Enumerates methods for fetching an association from the database.Specifies how Hibernate should handle the case of an orphaned foreign key with no associated row in the referenced table.Enumerates the possible actions for theon deleteclause of a foreign key constraint.Enumeration of defines styles of soft-deleteDescribes the storage of timezone information for zoned datetime types, in particular, for the typesOffsetDateTimeandZonedDateTime. -
Classes in org.hibernate.annotations used by org.hibernate.metamodel.mapping
-
Classes in org.hibernate.annotations used by org.hibernate.metamodel.mapping.internalClassDescriptionSpecifies how Hibernate should handle the case of an orphaned foreign key with no associated row in the referenced table.Enumeration of defines styles of soft-delete
-
Classes in org.hibernate.annotations used by org.hibernate.sql.results.graph.entity.internalClassDescriptionSpecifies how Hibernate should handle the case of an orphaned foreign key with no associated row in the referenced table.
-
Classes in org.hibernate.annotations used by org.hibernate.tupleClassDescriptionEnumerates the possible actions for the
on deleteclause of a foreign key constraint. -
Classes in org.hibernate.annotations used by org.hibernate.tuple.entityClassDescriptionEnumerates the possible actions for the
on deleteclause of a foreign key constraint. -
Classes in org.hibernate.annotations used by org.hibernate.typeClassDescriptionEnumerates the possible actions for the
on deleteclause of a foreign key constraint.
CascadeType.