Package io.jmix.core.entity.annotation
Annotation Interface JmixGeneratedValue
Indicates an entity attribute that must be assigned by the framework right after creating an entity instance.
The annotated attribute must be of Long
, Integer
or UUID
type.
Entity cannot have more than one UUID
attribute marked with this annotation.
-
Optional Element Summary
Modifier and TypeOptional ElementDescriptionboolean
If this attribute is true and thesequenceName()
is set, the sequence will be incremented byjmix.data.numberIdCacheSize
to cache intermediate values in memory.Defines an existing database sequence name to use for number generation.
-
Element Details
-
sequenceName
String sequenceNameDefines an existing database sequence name to use for number generation.- Default:
- ""
-
sequenceCache
boolean sequenceCacheIf this attribute is true and thesequenceName()
is set, the sequence will be incremented byjmix.data.numberIdCacheSize
to cache intermediate values in memory.- Default:
- false
-