01: package org.conform;
02:
03: import java.lang.annotation.Target;
04: import java.lang.annotation.ElementType;
05: import java.lang.annotation.Retention;
06: import java.lang.annotation.RetentionPolicy;
07:
08: /**
09: * PropertyReference
10: * <p/>
11: * This annotation can be used for DTO fields to tell that a
12: * specific DTO property maps to a specific property of aother BO.
13: */
14: @Target({ElementType.FIELD})
15: @Retention(RetentionPolicy.RUNTIME)
16: public @interface PropertyReference {
17: /**
18: * @return the class name of the referenced class this property maps to.
19: */
20: String className();
21:
22: /**
23: * @return the property name of the referenced class this property maps to.
24: */
25: String propertyName();
26: }
|