Package org.hibernate.annotations
Annotation Type AttributeAccessor
-
@Target({TYPE,METHOD,FIELD}) @Retention(RUNTIME) public @interface AttributeAccessor
Names a persistent property access strategy (PropertyAccessStrategy
) to use. Can be specified at either:- TYPE level, which will act as naming the default accessor strategy for all attributes on the class which do not explicitly name an accessor strategy
- METHOD/FIELD level, which will be in effect for just that attribute.
PropertyAccessStrategy
. Forproperty/field
access, the JPAAccess
annotation should be preferred using the appropriateAccessType
. However, if this annotation is used with eithervalue="property"
orvalue="field"
, it will act just as the corresponding usage ofAccess
.
-
-
Required Element Summary
Required Elements Modifier and Type Required Element Description java.lang.String
value
Names thePropertyAccessStrategy
strategy.
-
-
-
Element Detail
-
value
java.lang.String value
Names thePropertyAccessStrategy
strategy.
-
-