Defines identity generation for an associated entity bean.
-
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionintOptional CACHE option for database IDENTITY or SEQUENCE.For IDENTITY type specify the generated mode of ALWAYS or BY DEFAULT.intOptional INCREMENT BY value of an IDENTITY or SEQUENCE.Sequence name when using type SEQUENCE.intOptional START WITH value of an IDENTITY or SEQUENCE.The type of identity for the associated entity bean.
-
Element Details
-
type
IdentityType typeThe type of identity for the associated entity bean.- Default:
- AUTO
-
generated
IdentityGenerated generatedFor IDENTITY type specify the generated mode of ALWAYS or BY DEFAULT.- Default:
- AUTO
-
sequenceName
String sequenceNameSequence name when using type SEQUENCE. When not specified the naming convention will define the sequence name.- Default:
- ""
-
start
int startOptional START WITH value of an IDENTITY or SEQUENCE.- Default:
- 0
-
increment
int incrementOptional INCREMENT BY value of an IDENTITY or SEQUENCE.- Default:
- 0
-
cache
int cacheOptional CACHE option for database IDENTITY or SEQUENCE.Used by some databases for a performance improvement providing identity and sequence values with the potential for gaps and non strict ordering of values being used.
- Default:
- 0
-