Package org.hibernate.annotations
Annotation Interface AttributeAccessor
Specifies an attribute access strategy to use.
Can be specified at either:
- TYPE level, which will act as 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.
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
.
-
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionClass<? extends PropertyAccessStrategy>
A class implementingPropertyAccessStrategy
.Deprecated.
-
Element Details
-
value
Deprecated.usestrategy()
Names thePropertyAccessStrategy
strategy.- Default:
- ""
-
strategy
Class<? extends PropertyAccessStrategy> strategyA class implementingPropertyAccessStrategy
.- Default:
- org.hibernate.property.access.spi.PropertyAccessStrategy.class
-
strategy()