com.softwareag.centrasite.appl.framework.persistence.mapper.annotations
Annotation Type DurationAttribute
@Retention(value=RUNTIME)
@Target(value=METHOD)
public @interface DurationAttribute
Annotation for mapping the return value of a (getter) method to
a Duration attribute specified on type level. The attribute name is
mandatory and is used to identify the attribute.
Required Element Summary |
java.lang.String |
attributeName
Name of the attribute represented by this annotation. |
Optional Element Summary |
java.lang.Class<?> |
targetType
|
attributeName
public abstract java.lang.String attributeName
- Name of the attribute represented by this annotation.
- Returns:
- String
targetType
public abstract java.lang.Class<?> targetType
- Returns:
- The type of the mapped property. Needed only if the return type
is collection.
- Default:
- java.lang.Object.class