Top Description Methods
org.hibernate.annotations

public @Interface AttributeAccessor

extends Annotation
Annotations
@Target:METHOD, FIELD
@Retention:RUNTIME
@AttributeBinderType
binder:AttributeAccessorBinder
Imports
java.lang.annotation.Retention, .Target, org.hibernate.binder.internal.AttributeAccessorBinder, org.hibernate.property.access.spi.PropertyAccessStrategy

Specifies an attribute access strategy to use.

Can be specified at either:

Should only be used to name custom PropertyAccessStrategy. For property/field access, the JPA jakarta.persistence.Access annotation should be preferred using the appropriate jakarta.persistence.AccessType. However, if this annotation is used with either value="property" or value="field", it will act just as the corresponding usage of jakarta.persistence.Access.

Authors
Steve Ebersole, Emmanuel Bernard
See Also
PropertyAccessStrategy, org.hibernate.property.access.spi.PropertyAccessStrategyResolver

Method Summary

Modifier and TypeMethod and Description
public Class<? extends PropertyAccessStrategy>
strategy()

A class implementing PropertyAccessStrategy.

public String
value()

Deprecated since 6.0. use strategy()
Names the PropertyAccessStrategy strategy.
Inherited from java.lang.annotation.Annotation:
annotationTypeequalshashCodetoString

Method Detail

strategyback to summary
public Class<? extends PropertyAccessStrategy> strategy()

A class implementing PropertyAccessStrategy.

valueback to summary
public String value()

Deprecated

since 6.0.

use strategy()

Names the PropertyAccessStrategy strategy.

Annotations
@Deprecated
since:6.0