Primary Key generation element.
If this is present, a key generator GBean will be created
and configured to generate IDs for the surrounding object.
Indicates that the database automatically populates a primary key
ID in the listed column(s). Typically this is used for columns
with an AUTO_INCREMENT flag or the equivalent. This only makes
sense if this key generator is used for an EJB or something else
with a corresponding database table (not if it's meant to generate
unique web session IDs or something like that -- see
auto-increment-tableType for that case).
Indicates that a separate table holds a list of table name/ID
pairs and the server should fetch the next ID from that table.
Indicates that an arbitrary SQL statement should be used to
generate the next ID.
Handles the case where an arbitrary SQL statement is executed,
and the JDBC driver returns a new automatically generated ID.
This should not be used when the destination table itself
generates the ID (see database-generatedType), but it could be
used for a web session ID or something where there is no
naturally matching database table (but you could create one
with an AUTO_INCREMENT key, specify an insert statement here,
and then capture the newly returned ID and use it as your
web session ID).
Handles a user-provided generator. You deploy any old generator
as a GBean, and then point to that GBean here. The generator
should implement org.tranql.pkgenerator.PrimaryKeyGenerator.