Annotation Interface JmixGeneratedValue


@Target(FIELD) @Retention(RUNTIME) public @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

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    boolean
    If this attribute is true and the sequenceName() is set, the sequence will be incremented by jmix.data.numberIdCacheSize to cache intermediate values in memory.
    Defines an existing database sequence name to use for number generation.
  • Element Details

    • sequenceName

      String sequenceName
      Defines an existing database sequence name to use for number generation.
      Default:
      ""
    • sequenceCache

      boolean sequenceCache
      If this attribute is true and the sequenceName() is set, the sequence will be incremented by jmix.data.numberIdCacheSize to cache intermediate values in memory.
      Default:
      false