All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.kenshoo.pl.entity.annotation.Id Maven / Gradle / Ivy

Go to download

A Java persistence layer based on JOOQ for high performance and business flow support.

There is a newer version: 0.1.121-jooq-3.16.3
Show newest version
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 - 2024 Weber Informatics LLC | Privacy Policy