com.kenshoo.pl.entity.annotation.Id Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of persistence-layer Show documentation
Show all versions of persistence-layer Show documentation
A Java persistence layer based on JOOQ for high performance and business flow support.
package com.kenshoo.pl.entity.annotation;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* 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.
*/
@Target(ElementType.FIELD)
@Retention(RetentionPolicy.RUNTIME)
public @interface Id {
IdGeneration value() default IdGeneration.Manual;
}