Package io.ebean.annotation
Annotation Type Identity
-
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description intcacheOptional CACHE option for database IDENTITY or SEQUENCE.IdentityGeneratedgeneratedFor IDENTITY type specify the generated mode of ALWAYS or BY DEFAULT.intincrementOptional INCREMENT BY value of an IDENTITY or SEQUENCE.StringsequenceNameSequence name when using type SEQUENCE.intstartOptional START WITH value of an IDENTITY or SEQUENCE.IdentityTypetypeThe type of identity for the associated entity bean.
-
-
-
Element Detail
-
type
IdentityType type
The type of identity for the associated entity bean.- Default:
- io.ebean.annotation.IdentityType.AUTO
-
-
-
generated
IdentityGenerated generated
For IDENTITY type specify the generated mode of ALWAYS or BY DEFAULT.- Default:
- io.ebean.annotation.IdentityGenerated.AUTO
-
-
-
sequenceName
String sequenceName
Sequence name when using type SEQUENCE. When not specified the naming convention will define the sequence name.- Default:
- ""
-
-
-
start
int start
Optional START WITH value of an IDENTITY or SEQUENCE.- Default:
- 0
-
-
-
increment
int increment
Optional INCREMENT BY value of an IDENTITY or SEQUENCE.- Default:
- 0
-
-
-
cache
int cache
Optional 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
-
-