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

com.jpattern.orm.annotation.Generator Maven / Gradle / Ivy

There is a newer version: 3.5.1
Show newest version
package com.jpattern.orm.annotation;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * 
 * Define a field that is generated automatically on save action
 * 
 * @author Francesco Cina
 *
 * 08/giu/2011
 */

@Target(value=ElementType.FIELD)
@Retention(value=RetentionPolicy.RUNTIME)
public @interface Generator {

	GeneratorType generatorType();

	String name();

	/**
	 * The generator is activated only if the related field's
	 * value is in the array.
	 * If the array is empty the generator is always active.
	 * @return
	 */
	long[] ifValueIn() default {};

	int getCacheSize() default 0;

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy