2015-06-08 17:19:09 +02:00
|
|
|
package org.gcube.accounting.datamodel.validations.annotations;
|
2015-05-28 13:19:25 +02:00
|
|
|
|
|
|
|
import java.lang.annotation.ElementType;
|
|
|
|
import java.lang.annotation.Retention;
|
|
|
|
import java.lang.annotation.RetentionPolicy;
|
|
|
|
import java.lang.annotation.Target;
|
|
|
|
|
2015-06-08 17:19:09 +02:00
|
|
|
import org.gcube.accounting.datamodel.validations.validators.NotEmptyIfNotNullValidator;
|
2015-05-28 13:19:25 +02:00
|
|
|
|
|
|
|
@Target(ElementType.FIELD)
|
|
|
|
@Retention(RetentionPolicy.RUNTIME)
|
|
|
|
@ValidityChecker(managed=NotEmptyIfNotNullValidator.class)
|
|
|
|
public @interface NotEmptyIfNotNull {
|
2015-06-05 11:43:53 +02:00
|
|
|
|
2015-05-28 13:19:25 +02:00
|
|
|
}
|