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


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

Annotation for mapping the return value of a (getter) method to attribute specified on type level. The attribute name is mandatory and is used to identify the attribute. This annotation is very similar to the Association annotation in terms of supported attributes and underlying representation. The difference is that the association and target types are not specified but obtained from the attribute description.

See Also:
Association

Required Element Summary
 java.lang.String attributeName
          Name of the attribute represented by this annotation.
 
Optional Element Summary
 CascadeStyle cascadeStype
          The cascading style for this mapping.
 java.lang.Class<?>[] targetTypes
           
 

Element Detail

attributeName

public abstract java.lang.String attributeName
Name of the attribute represented by this annotation.

Returns:
String

cascadeStype

public abstract CascadeStyle cascadeStype
The cascading style for this mapping.

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

targetTypes

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