Annotation Type VirtualAccessMethods


@Documented @Target(TYPE) @Retention(RUNTIME) public @interface 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

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    (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"