Module org.eclipse.persistence.core
Annotation Type VirtualAccessMethods
Specifies that this class contains virtual attributes.
This annotation is used in an EclipseLink-specific way to define
access methods used by mappings with accessType=VIRTUAL.
The xml-equivalent is the <access-methods> tag
-
Optional Element Summary
Modifier and TypeOptional ElementDescription(Optional) The name of the getter method to use for the virtual property This method must take a single java.lang.String parameter and return a java.lang.Object.(Optional) The name of the setter method to use for the virtual property This method must take a java.lang.String parameter and a java.lang.Object parameter.
-
Element Details
-
get
String get(Optional) The name of the getter method to use for the virtual property This method must take a single java.lang.String parameter and return a java.lang.Object. If setMethod is specified, getMethod must be specified- Default:
"get"
-
set
String set(Optional) The name of the setter method to use for the virtual property This method must take a java.lang.String parameter and a java.lang.Object parameter. If getMethod is specified, setMethod must be specified- Default:
"set"
-