Persistence Properties View (for Attributes) |
The Persistence Properties view displays the persistence information for the currently selected mapped attribute. This table lists the properties available in the Persistence Properties view for each mapping type.
Property | Description | Default | Available for Mapping Type |
---|---|---|---|
Map As | Define the mapping type for the attribute |
|
All mapping types |
Column | The database column that contains the value for the attribute |
|
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 |
Generated Value | These fields define how the primary key is generated. |
|
ID Mapping
|
Strategy |
|
Auto | ID Mapping
|
Generator Name |
|
|
ID Mapping
|
Sequence Generator | These fields define the database table used for generating the primary key. These fields apply only when Strategy = Sequence. |
|
ID Mapping
|
Name | Name of the sequence table to use for defining primary key values. |
|
ID Mapping
|
Sequence | Unique name of the sequence. |
|
ID Mapping
|
Table Generator | These fields define the database table used for generating the primary key. These fields apply only when Strategy = Table. |
|
ID Mapping
|
Name | Unique name of the generator. |
|
ID Mapping
|
Table | Database table that stores the generated ID values. |
|
ID Mapping
|
Target Entity |
|
|
One-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
|
Ordered By | Specify the default order for objects returned from a query:
|
Primary key | One-to-Many Mapping. Many-to-Many Mapping, Many-to-One Mapping |
Join Column | Specify a mapped column for joining an entity association. | By default, the mapping is assumed to have a single join. | One-to-One Mapping. One-to-Many Mapping |
Name | Name of the join table that contains the foreign key column. | By default, the name is assumed to be the primary tables associated with the entities concatenated with an underscore. | One-to-One Mapping, One-to-Many Mapping |
Referenced Column | Name of the column referenced by this foreign key column. |
|
One-to-One Mapping, One-to-Many Mapping |
Inverse Join Column |
|
|
One-to-Many Mapping
|
Attribute Overrides | Overrides the column mappings from the mapped, entity tabled. |
|
Embedded Mapping
|