com.softwareag.centrasite.appl.framework.persistence.mapper.annotations
Annotation Type Property


@Retention(value=RUNTIME)
@Target(value=METHOD)
public @interface Property

Annotation for mapping a property of a bean to a property of a RegistryObject.


Optional Element Summary
 java.lang.String addRemoveMethodName
          Used only with collection properties.
 java.lang.String target
          Name of the target property from the RegistryObject.
 java.lang.Class<?> targetType
           
 

target

public abstract java.lang.String target
Name of the target property from the RegistryObject.

Returns:
String the name of the property to be set
Default:
""

targetType

public abstract java.lang.Class<?> targetType
Returns:
The type of the mapped bean.
Default:
java.lang.Object.class

addRemoveMethodName

public abstract java.lang.String addRemoveMethodName
Used only with collection properties. Sets the last part of the name for the add and remove method.
Example:
property chlidrenConcepts has add method called addChildConcepts() Because of the name inconsistency the property addRemoveMethodName should be set to "ChildConcepts"

Returns:
String the name of the add method for this property
Default:
""