Annotation Type Id


  • @Target(FIELD)
    @Retention(RUNTIME)
    public @interface Id
    Annotates the field that can be used as unique identifier. For a specific currentState, only one field can be annotated with @Id and it has to be either Integer or Long. This field is be used by audit log to reference the currentState. If no field is annotated with @Id, audit log is not written for this currentState.
    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element Description
      IdGeneration value  
    • Element Detail

      • value

        IdGeneration value
        Default:
        com.kenshoo.pl.entity.annotation.IdGeneration.Manual