org.onetwo.dbm.annotation.DbmGeneratedValue Maven / Gradle / Ivy
The newest version!
package org.onetwo.dbm.annotation;
import static javax.persistence.GenerationType.AUTO;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
import javax.persistence.GenerationType;
/**
* 对应 jpa @GeneratedValue
* @author wayshall
*
*/
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.TYPE, ElementType.FIELD, ElementType.METHOD})
public @interface DbmGeneratedValue {
GenerationType strategy() default AUTO;
String generator() default "";
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy