com.kenshoo.pl.entity.annotation.Id Maven / Gradle / Ivy
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;
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy