@Retention(value=RUNTIME)
@Target(value=METHOD)
public @interface Relationship
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
Modifier and Type | Required Element and Description |
---|---|
java.lang.String |
attributeName
Name of the attribute represented by this annotation.
|
Modifier and Type | Optional Element and Description |
---|---|
CascadeStyle |
cascadeStype
The cascading style for this mapping.
|
java.lang.Class<?>[] |
targetTypes
The supported target type
Class objects. |
public abstract java.lang.String attributeName
public abstract CascadeStyle cascadeStype
CascadeStyle