flolooki.blogg.se

Java annotations database schema
Java annotations database schema








java annotations database schema

An entity must always have an identifier attribute, which is used when loading the entity in a given Persistence Context. See the Automatically-generated identifiers section for more info. Hibernate supports the even for UUIDidentifiers. specifies that the entity identifier value is automatically generated using an identity column, a database sequence, or a table generator. In which case, it allows you to customize the underlying foreign key definition. is used to specify the associated foreign key of a The only used if the automated schema generation tool is enabled. See the Entity associations with the named native queries section for more info. is used with the to map the selected columns to the fields of some specific entity. See the Exclude default entity listeners section for more info. is used to specify that the currently annotated entity skips the invocation of listeners declared by its superclass. is used to specify that the currently annotated entity skips the invocation of any default listener. See the basic type section for more info. is used to specify that an entity attribute represents an enumerated type. is used with the to map the selected columns to an entity.

java annotations database schema

See the JPA callbacks section for more info. is used to specify an array of callback listener classes that are used by the currently annotated entity. Unlike basic and embeddable types, entity types have an identity and their state is managed by the underlying Persistence Context. is used to specify that the currently annotate class represents an entity type. See the Composite identifiers with for more info. is used to specify the entity identifier is an embeddable type. See the Embeddables section for more info. is used to specify that a given entity attribute represents an embeddable type. Like basic types, embeddable types do not have any identity, being managed by their owning entity. See the Collections section for more info. is used to specify a collection of basic or embeddable types. See the Discriminator section for more info. is used to specify what value of the discriminator column is used for mapping the currently annotated entity. is used to specify the discriminator column name and the discriminator type for the SINGLE_TABLE and JOINED Inheritance strategies. is used to group multiple the AttributeConverter section for more info. See the AttributeConverter section for more info. is used to specify that the current annotate AttributeConverter implementation can be used as a JPA basic attribute converter. is used to specify the AttributeConverter implementation used to convert the currently annotated basic attribute. See the Multiple scalar values NamedNativeQuery with ConstructorResult section for more info. is used in conjunction with the to map columns of a given SELECT query to a certain object constructor. is used in conjunction with the to map a SQL column for a given SELECT query. See the annotation section for more info. is used to specify the mapping between a basic entity attribute and the database table column. See the Collections of embeddable types section for more info. is used to specify the database table that stores the values of a basic or an embeddable type collection. is used to specify whether an entity should be stored in the second-level cache. See the Basic types chapter for more info. used to group several is used to map a basic attribute type to a database column. See the Overriding Embeddable types section for more info. used to group several is used to override an attribute mapping inherited from a mapped superclass or an embeddable. inherited from a mapped superclass or an embeddable. is used to override an association mapping (e.g. See the Access type section for more info. is used to specify the access type of the associated entity class, mapped superclass, or the embeddable class and entity attribute.

java annotations database schema

describe each annotation with links to their Java doc and their official documentation sections. Java Persistence API Tutorial JPA Annotationsġ. This article provides you with 89 JPA mapping annotations for quick reference and/or summary.










Java annotations database schema