Modifier and Type | Required Element and Description |
---|---|
String |
retrieveObj
The JNDI name of the object to be used in order to retrieve the external entity.
|
Modifier and Type | Optional Element and Description |
---|---|
boolean |
fieldAccess
If the field value must be set directly (field access) or via setter method.
|
boolean |
lazyLoading
If the external entity should be lazy loaded (only loaded when forced to).
|
String |
mappedBy
The external entity field that maps the relationship (reversed mapped relationship).
|
String |
paramsValuesMethod
The name of the annotated entity method that returns the identifiers used by the
retrieveMethod() to retrieve the external entities. |
String |
retrieveMethod
The name of the method to be used in order to retrieve the external entity.
|
Class<?>[] |
retrieveMethodParamsClasses
The parameters classes for the method to used in order to retrieve the external entity.
|
boolean |
singleEntity
If the relationship represents a *-to-one relationship.
|
public abstract String retrieveObj
public abstract boolean lazyLoading
public abstract String paramsValuesMethod
retrieveMethod()
to retrieve the external entities. The method might return a single
identifier or a Collection of identifiers (in this case, the singleEntity()
must be false).
The method must take no parameters.public abstract boolean singleEntity
public abstract String mappedBy
public abstract String retrieveMethod
paramsValuesMethod()
. The default values are
ExternalEntityLoader.DIR_RET_METHOD
(if the external entity is mapped directly) or
ExternalEntityLoader.REV_RET_METHOD
(if the external entity maps the relationship).public abstract Class<?>[] retrieveMethodParamsClasses
ExternalEntityLoader.DIR_RET_METHOD_PARAMS_CLASSES
(if mappedBy()
is
empty), ExternalEntityLoader.REV_SINGLE_RET_METHOD_PARAMS_CLASSES
(if mappedBy()
is
not empty and singleEntity()
is false) or
ExternalEntityLoader.REV_MULTI_RET_METHOD_PARAMS_CLASSES
(if mappedBy()
is not empty
and singleEntity()
is true).public abstract boolean fieldAccess
Copyright © 2013. All Rights Reserved.