@Retention(value=RUNTIME)
@Target(value=METHOD)
public @interface Association
Modifier and Type | Optional Element and Description |
---|---|
CascadeStyle |
cascadeStype
The cascading style for this mapping.
|
java.lang.String |
key
Gets the association key.
|
Association.MappedTo |
mappedTo
Returns the mapping strategy.
|
java.lang.Class<?> |
targetType
Gets the
Class type of the association's target object. |
java.lang.Class<?>[] |
targetTypes
Gets the supported class types for the association's target objects.
|
java.lang.String |
type
Gets the association type name.
|
public abstract java.lang.String key
public abstract java.lang.String type
public abstract java.lang.Class<?> targetType
Class
type of the association's target object. Default is Object
class.public abstract java.lang.Class<?>[] targetTypes
public abstract Association.MappedTo mappedTo
Association.MappedTo.TARGET_OBJECT
.public abstract CascadeStyle cascadeStype
CascadeStyle.NONE
.CascadeStyle