Top Description Methods
org.hibernate.property.access.spi

public Interface PropertyAccessStrategyResolver

extends Service
Known Direct Implementers
org.hibernate.property.access.internal.PropertyAccessStrategyResolverStandardImpl
Imports
org.hibernate.EntityMode, org.hibernate.service.Service

Contract for resolving the PropertyAccessStrategy to use.

todo : moving forward I'd prefer this not be a service, but instead a strategy on the MetadataBuildingContext or MetadataBuildingOptions

Author
Steve Ebersole

Method Summary

Modifier and TypeMethod and Description
public PropertyAccessStrategy

Returns:

The resolved PropertyAccessStrategy
resolvePropertyAccessStrategy
(Class<T>
The java class of the entity
containerClass
,
String
The access strategy name explicitly specified, if any.
explicitAccessStrategyName
,
EntityMode
The entity mode in effect for the property, used to interpret different default strategies.
entityMode
)

Resolve the PropertyAccessStrategy to use

Method Detail

resolvePropertyAccessStrategyback to summary
public PropertyAccessStrategy resolvePropertyAccessStrategy(Class<T> containerClass, String explicitAccessStrategyName, EntityMode entityMode)

Resolve the PropertyAccessStrategy to use

Parameters
containerClass:Class<T>

The java class of the entity

explicitAccessStrategyName:String

The access strategy name explicitly specified, if any.

entityMode:EntityMode

The entity mode in effect for the property, used to interpret different default strategies.

Returns:PropertyAccessStrategy

The resolved PropertyAccessStrategy