@Target(value={TYPE,METHOD,FIELD}) @Retention(value=RUNTIME) public @interface AttributeAccessor
Names a persistent property access strategy (PropertyAccessStrategy) to use.
Can be specified at either:<ul> <li> <strong>TYPE</strong> level, which will act as naming the default accessor strategy for all attributes on the class which do not explicitly name an accessor strategy </li> <li> <strong>METHOD/FIELD</strong> level, which will be in effect for just that attribute. </li> </ul>
Should only be used to name custom PropertyAccessStrategy. For
property/field access, the JPA Access annotation should be preferred
using the appropriate AccessType. However, if this annotation is used with
either value="property" or value="field", it will act just as the corresponding usage
of Access.
| Modifier and Type | Required Element and Description |
|---|---|
String |
value
Names the
PropertyAccessStrategy strategy. |
public abstract String value
Names the PropertyAccessStrategy strategy.
Copyright © 2001-2018 Red Hat, Inc. All Rights Reserved.