Adds the description.
Specifies the entity listener.
The following table lists the specifiable attributes:
Table 6-53 Attributes of <entity-listener>
Attribute name | Type | Optional/Required | Description |
---|---|---|---|
class | xsd:string | Required | Class name of the entity listener. |
Specifies the lifecycle callback method.
For details about the functionality and attributes, see section 2.7 javax.persistence package in the manual uCosminexus Application Server API Reference Guide.
The following table lists the specifiable attributes:
Table 6-54 Attributes of <pre-persist>, <post-persist>, <pre-remove>, <post-remove>, <pre-update>, <post-update>, and <post-load>
Attribute name | Type | Optional/Required | Description |
---|---|---|---|
method-name | xsd:string | Required | Target method name. |
Adds a unique constraint to DDL.
For details about the functionality and attributes, see section 2.7 javax.persistence package in the manual uCosminexus Application Server API Reference Guide.
Specifies the name of the column in which the unique constraint will be added.
The column-name element corresponds to the columnNames attribute of @UniqueConstraint.
For details about the functionality and attributes, see section 2.7 javax.persistence package in the manual uCosminexus Application Server API Reference Guide.
Specifies the query string.
The query element corresponds to the query attribute of @NamedQuery and the query attribute of @NamedNativeQuery.
For details about the functionality and attributes, see section 2.7 javax.persistence package in the manual uCosminexus Application Server API Reference Guide.
Adds a hint to the query.
The hint element corresponds to the hints attribute of @NamedQuery and the hints attribute of @NamedNativeQuery.
For details about the functionality and attributes, see section 2.7 javax.persistence package in the manual uCosminexus Application Server API Reference Guide.
The following table lists the specifiable attributes:
Table 6-55 Attributes of <hint>
Attribute name | Type | Optional/Required | Description |
---|---|---|---|
name | xsd:string | Required | See the name attribute in 2.7.53 @QueryHint in the manual uCosminexus Application Server API Reference Guide. |
value | xsd:string | Required | See the value attribute in 2.7.53 @QueryHint in the manual uCosminexus Application Server API Reference Guide. |
Specifies the entity class used for mapping the native SQL query result.
The entity-result element corresponds to the entities attribute of @SqlResultSetMapping.
For details about the functionality and attributes, see section 2.7 javax.persistence package in the manual uCosminexus Application Server API Reference Guide.
The following table lists the specifiable attributes:
Table 6-56 Attributes of <entity-result>
Attribute name | Type | Optional/Required | Description |
---|---|---|---|
entity-class | xsd:string | Required | See the entityClass attribute in 2.7.15 @EntityResult in the manual uCosminexus Application Server API Reference Guide. |
discriminator-column | xsd:string | Optional | See the discriminatorColumn attribute in 2.7.15 @EntityResult in the manual uCosminexus Application Server API Reference Guide. |
Specifies the field used for mapping the native SQL query result.
The field-result element corresponds to the fields attribute of @EntityResult.
For details about the functionality and attributes, see section 2.7 javax.persistence package in the manual uCosminexus Application Server API Reference Guide.
The following table lists the specifiable attributes:
Table 6-57 Attributes of <field-result>
Type | Attribute name | Optional/Required | Description |
---|---|---|---|
xsd:string | name | Required | See the name attribute in 2.7.19 @FieldResult in the manual uCosminexus Application Server API Reference Guide. |
xsd:string | column | Required | See the column attribute in 2.7.19 @FieldResult in the manual uCosminexus Application Server API Reference Guide. |
Specifies the column used for mapping the native SQL query result.
The column-result element corresponds to the columns attribute of @SqlResultSetMapping.
For details about the functionality and attributes, see section 2.7 javax.persistence package in the manual uCosminexus Application Server API Reference Guide.
The following table lists the specifiable attributes:
Table 6-58 Attributes of <column-result>
Type | Attribute name | Optional/Required | Description |
---|---|---|---|
xsd:string | name | Required | See the name attribute in 2.7.7 @ColumnResult in the manual uCosminexus Application Server API Reference Guide. |
The functionality of the attributes element does not exist.
The column element specifies the column mapping for the Persistent field or property.
For details about the functionality and attributes, see section 2.7 javax.persistence package in the manual uCosminexus Application Server API Reference Guide.
The following table lists the specifiable attributes:
Table 6-59 Attributes of <column>
Attribute name | Type | Optional/Required | Description |
---|---|---|---|
name | xsd:string | Optional | See the name attribute in 2.7.6 @Column in the manual uCosminexus Application Server API Reference Guide. |
unique | xsd:boolean | Optional | See the unique attribute in 2.7.6 @Column in the manual uCosminexus Application Server API Reference Guide. |
nullable | xsd:boolean | Optional | See the nullable attribute in 2.7.6 @Column in the manual uCosminexus Application Server API Reference Guide. |
insertable | xsd:boolean | Optional | See the insertable attribute in 2.7.6 @Column in the manual uCosminexus Application Server API Reference Guide. |
updatable | xsd:boolean | Optional | See the updatable attribute in 2.7.6 @Column in the manual uCosminexus Application Server API Reference Guide. |
column-definition | xsd:string | Optional | See the columnDefinition attribute in 2.7.6 @Column in the manual uCosminexus Application Server API Reference Guide. |
table | xsd:string | Optional | See the table attribute in 2.7.6 @Column in the manual uCosminexus Application Server API Reference Guide. |
length | xsd:int | Optional | See the length attribute in 2.7.6 @Column in the manual uCosminexus Application Server API Reference Guide. |
precision | xsd:int | Optional | See the precision attribute in 2.7.6 @Column in the manual uCosminexus Application Server API Reference Guide. |
scale | xsd:int | Optional | See the scale attribute in 2.7.6 @Column in the manual uCosminexus Application Server API Reference Guide. |
Specifies the strategy for generating the primary key value.
For details about the functionality and attributes, see section 2.7 javax.persistence package in the manual uCosminexus Application Server API Reference Guide.
The following table lists the specifiable attributes:
Table 6-60 Attributes of <generated-value>
Attribute name | Type | Optional/Required | Description |
---|---|---|---|
strategy | orm:generation-type | Optional | See the strategy attribute in 2.7.20 @GeneratedValue in the manual uCosminexus Application Server API Reference Guide. |
generator | xsd:string | Optional | See the generator attribute in 2.7.20 @GeneratedValue in the manual uCosminexus Application Server API Reference Guide. |
Specified when mapping to the DATE, TIME, and TIMESTAMP type.
For details about the functionality and attributes, see section 2.7 javax.persistence package in the manual uCosminexus Application Server API Reference Guide.
Adds the table generator.
For details about the functionality and attributes, see section 2.7 javax.persistence package in the manual uCosminexus Application Server API Reference Guide.
The following table lists the specifiable attributes:
Table 6-61 Attributes of <table-generator>
Attribute name | Type | Optional/Required | Description |
---|---|---|---|
name | xsd:string | Required | See the name attribute in 2.7.60 @TableGenerator in the manual uCosminexus Application Server API Reference Guide. |
table | xsd:string | Optional | See the table attribute in 2.7.60 @TableGenerator in the manual uCosminexus Application Server API Reference Guide. |
catalog | xsd:string | Optional | See the catalog attribute in 2.7.60 @TableGenerator in the manual uCosminexus Application Server API Reference Guide. |
schema | xsd:string | Optional | See the schema attribute in 2.7.60 @TableGenerator in the manual uCosminexus Application Server API Reference Guide. |
pk-column-name | xsd:string | Optional | See the pkColumnName attribute in 2.7.60 @TableGenerator in the manual uCosminexus Application Server API Reference Guide. |
value-column-name | xsd:string | Optional | See the valueColumnName attribute in 2.7.60 @TableGenerator in the manual uCosminexus Application Server API Reference Guide. |
pk-column-value | xsd:string | Optional | See the pkColumnName attribute in 2.7.60 @TableGenerator in the manual uCosminexus Application Server API Reference Guide. |
initial-value | xsd:int | Optional | See the initialValue attribute in 2.7.60 @TableGenerator in the manual uCosminexus Application Server API Reference Guide. |
allocation-size | xsd:int | Optional | See the allocationSize attribute in 2.7.60 @TableGenerator in the manual uCosminexus Application Server API Reference Guide. |
Overwrites the mapping of properties and fields.
For details about the functionality and attributes, see section 2.7 javax.persistence package in the manual uCosminexus Application Server API Reference Guide.
The following table lists the specifiable attributes:
Table 6-62 Attributes of <attribute-override>
Attribute name | Type | Optional/Required | Description |
---|---|---|---|
name | xsd:string | Required | See the name attribute in 2.7.3 @AttributeOverride in the manual uCosminexus Application Server API Reference Guide. |
The lob element is specified when mapping to the Lob type.
For details about the functionality and attributes, see section 2.7 javax.persistence package in the manual uCosminexus Application Server API Reference Guide.
Specified when mapping to the enumeration type.
For details about the functionality and attributes, see section 2.7 javax.persistence package in the manual uCosminexus Application Server API Reference Guide.
In order to join tables, the join-column element specifies the external key column of the join table corresponding to the owner-side entity.
For details about the functionality and attributes, see section 2.7 javax.persistence package in the manual uCosminexus Application Server API Reference Guide.
The following table lists the specifiable attributes:
Table 6-63 Attributes of <join-column>
Attribute name | Type | Optional/Required | Description |
---|---|---|---|
name | xsd:string | Optional | See the name attribute in 2.7.24 @JoinColumn in the manual uCosminexus Application Server API Reference Guide. |
referenced-column-name | xsd:string | Optional | See the referencedColumnName attribute in 2.7.24 @JoinColumn in the manual uCosminexus Application Server API Reference Guide. |
unique | xsd:boolean | Optional | See the unique attribute in 2.7.24 @JoinColumn in the manual uCosminexus Application Server API Reference Guide. |
nullable | xsd:boolean | Optional | See the nullable attribute in 2.7.24 @JoinColumn in the manual uCosminexus Application Server API Reference Guide. |
insertable | xsd:boolean | Optional | See the insertable attribute in 2.7.24 @JoinColumn in the manual uCosminexus Application Server API Reference Guide. |
updatable | xsd:boolean | Optional | See the updatable attribute in 2.7.24 @JoinColumn in the manual uCosminexus Application Server API Reference Guide. |
column-definition | xsd:string | Optional | See the columnDefinition attribute in 2.7.24 @JoinColumn in the manual uCosminexus Application Server API Reference Guide. |
table | xsd:string | Optional | See the table attribute in 2.7.24 @JoinColumn in the manual uCosminexus Application Server API Reference Guide. |
The join-table element specifies the join table to be used in many-to-many and the unilateral one-to-many relationships.
For details about the functionality and attributes, see section 2.7 javax.persistence package in the manual uCosminexus Application Server API Reference Guide.
The following table lists the specifiable attributes:
Table 6-64 Attributes of <join-table>
Attribute name | Type | Optional/Required | Description |
---|---|---|---|
name | xsd:string | Optional | See the name attribute in 2.7.26 @JoinTable in the manual uCosminexus Application Server API Reference Guide. |
catalog | xsd:string | Optional | See the catalog attribute in 2.7.26 @JoinTable in the manual uCosminexus Application Server API Reference Guide. |
schema | xsd:string | Optional | See the schema attribute in 2.7.26 @JoinTable in the manual uCosminexus Application Server API Reference Guide. |
In order to join tables, the inverse-join-column element specifies the external key column of the join table corresponding to the owned-side entity.
For details about the functionality and attributes, see section 2.7 javax.persistence package in the manual uCosminexus Application Server API Reference Guide.
The following table lists the specifiable attributes:
Table 6-65 Attributes of <inverse-join-column>
Attribute name | Type | Optional/Required | Description |
---|---|---|---|
name | xsd:string | Optional | See the name attribute in 2.7.24 @JoinColumn in the manual uCosminexus Application Server API Reference Guide. |
referenced-column-name | xsd:string | Optional | See the referencedColumnName attribute in 2.7.24 @JoinColumn in the manual uCosminexus Application Server API Reference Guide. |
unique | xsd:boolean | Optional | See the unique attribute in 2.7.24 @JoinColumn in the manual uCosminexus Application Server API Reference Guide. |
nullable | xsd:boolean | Optional | See the nullable attribute in 2.7.24 @JoinColumn in the manual uCosminexus Application Server API Reference Guide. |
insertable | xsd:boolean | Optional | See the insertable attribute in 2.7.24 @JoinColumn in the manual uCosminexus Application Server API Reference Guide. |
updatable | xsd:boolean | Optional | See the updatable attribute in 2.7.24 @JoinColumn in the manual uCosminexus Application Server API Reference Guide. |
column-definition | xsd:string | Optional | See the columnDefinition attribute in 2.7.24 @JoinColumn in the manual uCosminexus Application Server API Reference Guide. |
table | xsd:string | Optional | See the table attribute in 2.7.24 @JoinColumn in the manual uCosminexus Application Server API Reference Guide. |
The cascade element specifies the operations that you can cascade.
For details about the functionality and attributes, see section 2.7 javax.persistence package in the manual uCosminexus Application Server API Reference Guide.
Cascades all the operations.
Cascades the persist operation.
Cascades the merge operation.
Cascades the remove operation.
Cascades the refresh operation.
Specifies the order to be applied when maintaining a relation in the collection.
For details about the functionality and attributes, see section 2.7 javax.persistence package in the manual uCosminexus Application Server API Reference Guide.
Specifies the map key as the Map type relation.
For details about the functionality and attributes, see section 2.7 javax.persistence package in the manual uCosminexus Application Server API Reference Guide.
The following table lists the specifiable attributes:
Table 6-66 Attributes of <map-key>
Attribute name | Type | Optional/Required | Description |
---|---|---|---|
name | xsd:string | Optional | See the name attribute in 2.7.30 @MapKey in the manual uCosminexus Application Server API Reference Guide. |
The primary-key-join-column element specifies the primary key column used as the external key that JOINS with other tables.
For details about the functionality and attributes, see section 2.7 javax.persistence package in the manual uCosminexus Application Server API Reference Guide.
The following table lists the specifiable attributes:
Table 6-67 Attributes of <primary-key-join-column>
Attribute name | Type | Optional/Required | Description |
---|---|---|---|
name | xsd:string | Optional | See the name attribute in 2.7.51 @PrimaryKeyJoinColumn in the manual uCosminexus Application Server API Reference Guide. |
referenced-column-name | xsd:string | Optional | See the referencedColumnName attribute in 2.7.51 @PrimaryKeyJoinColumn in the manual uCosminexus Application Server API Reference Guide. |
column-definition | xsd:string | Optional | See the columnDefinition attribute in 2.7.51 @PrimaryKeyJoinColumn in the manual uCosminexus Application Server API Reference Guide. |