Hitachi

uCosminexus Application Server Compatibility Guide


13.3.3 Elements below table-generator

Organization of this subsection

(1) <table-generator>

The generators defined by the table-generator element will be applied to the persistence unit.

The defined generator is added to the generators defined using annotations. If a generator with the same name is defined in the annotation, the generator defined by the table-generator element is overwritten.

For details on the functionality and attributes, see 8.12 javax.persistence package.

The following table lists the specifiable attributes:

Table 13‒8: Attributes of <table-generator>

Attribute name

Type

Optional/Required

Description

name

xsd:string

Required

See the name attribute in 8.12.60 @TableGenerator.

table

xsd:string

Optional

See the table attribute in 8.12.60 @TableGenerator.

catalog

xsd:string

Optional

See the catalog attribute in 8.12.60 @TableGenerator.

schema

xsd:string

Optional

See the schema attribute in 8.12.60 @TableGenerator.

pk-column-name

xsd:string

Optional

See the pkColumnName attribute in 8.12.60 @TableGenerator.

value-column-name

xsd:string

Optional

See the valueColumnName attribute in 8.12.60 @TableGenerator.

pk-column-value

xsd:string

Optional

See the pkColumnValue attribute in 8.12.60 @TableGenerator.

initial-value

xsd:int

Optional

See the initialValue attribute in 8.12.60 @TableGenerator.

allocation-size

xsd:int

Optional

See the allocationSize attribute in 8.12.60 @TableGenerator.