General information |
This table lists the General properties available in the Java Details view for each mapping type.
Property | Description | Default | Available for Mapping Type |
---|---|---|---|
Map As | Define the mapping type for the attribute | Basic | All mapping types |
Column | The database column that contains the value for the attribute. This field corresponds to the @Column annotation. |
By default, the Column is assumed to be named identically to the attribute. | Basic mapping, Embedded mapping, ID mapping, Version mapping |
Name | Name of the database column.
This field corresponds to the |
Basic mapping, Embedded mapping, ID mapping | |
Table | Name of the database table that contains the selected column. | Basic mapping, Embedded mapping, ID mapping | |
Fetch Type | Defines how data is loaded from the database:
|
Eager | Basic mapping, One-to-one mapping |
Optional | Specifies if this field is can be null. | Yes | Basic mapping, One-to-one mapping |
Lob | Specify if the field is mapped to java.sql.Clob or java.sql.Blob .
This field corresponds to the |
Basic mapping |
|
Temporal | Specifies if this field is one of the following:
This field corresponds to the |
Basic mapping, ID mapping | |
Enumerated | Specify how to persist enumerated constraints if the String value suits your application requirements or to match an existing database schema.
This field corresponds to the |
Ordinal | |
Target Entity | The persistent entity to which the attribute is mapped. | One-to-one mapping,, One-to-many mapping Many-to-many mapping, Many-to-one mapping | |
Cascade Type | Specify which operations are propagated throughout the entity.
|
One-to-one mapping |
|
Mapped By | The field in the database table that "owns" the relationship. This field is required only on the non-owning side of the relationship. | One-to-one mapping, One-to-many mapping | |
Order By | Specify the default order for objects returned from a query:
This field corresponds to the |
Primary key | One-to-many mapping. Many-to-many mapping, Many-to-one mapping |
Attribute Overrides | Overrides the column mappings from the mapped, entity tabled. (for example, if the inherited column name is incompatible with a pre-existing data model, or invalid as a column name in your database). | Embedded mapping
|