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


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

Annotation for mapping the return value of a (getter) method to association. Both key or name/paths can be used to specify the association. If both are present the key properties take precedence.


Optional Element Summary
 CascadeStyle cascadeStype
          The cascading style for this mapping.
 java.lang.String key
           
 Association.MappedTo mappedTo
           
 java.lang.Class<?> targetType
           
 java.lang.Class<?>[] targetTypes
           
 java.lang.String type
           
 

key

public abstract java.lang.String key
Returns:
The key of this associations's type.
Default:
""

type

public abstract java.lang.String type
Returns:
The association type.
Default:
""

targetType

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

targetTypes

public abstract java.lang.Class<?>[] targetTypes
Returns:
The supported mapped target bean types using this annotation.
Default:
{}

mappedTo

public abstract Association.MappedTo mappedTo
Returns:
The mapping strategy. Specifies if the property value should be mapped to the target of the association or the association itself.
Default:
com.softwareag.centrasite.appl.framework.persistence.mapper.annotations.Association.MappedTo.TARGET_OBJECT

cascadeStype

public abstract CascadeStyle cascadeStype
The cascading style for this mapping.

Returns:
CascadeStyle
Default:
com.softwareag.centrasite.appl.framework.mapping.CascadeStyle.NONE