|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |
@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.
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 |
---|
public abstract java.lang.String attributeName
public abstract CascadeStyle cascadeStype
CascadeStyle
public abstract java.lang.Class<?>[] targetTypes
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |