@Singleton public class JPATraversableResolver extends Object implements javax.validation.TraversableResolver
TraversableResolver which is aware of JPA 2 and utilizes PersistenceUtil to
query the reachability of a property.
This resolver will be automatically enabled if JPA 2 is on the classpath and the default TraversableResolver is
used.
This class needs to be public as it's instantiated via a privileged action that is not in this package.
| Constructor and Description |
|---|
JPATraversableResolver() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isCascadable(Object traversableObject,
javax.validation.Path.Node traversableProperty,
Class<?> rootBeanType,
javax.validation.Path pathToTraversableObject,
ElementType elementType) |
boolean |
isReachable(Object traversableObject,
javax.validation.Path.Node traversableProperty,
Class<?> rootBeanType,
javax.validation.Path pathToTraversableObject,
ElementType elementType) |
public final boolean isReachable(Object traversableObject, javax.validation.Path.Node traversableProperty, Class<?> rootBeanType, javax.validation.Path pathToTraversableObject, ElementType elementType)
isReachable in interface javax.validation.TraversableResolverpublic final boolean isCascadable(Object traversableObject, javax.validation.Path.Node traversableProperty, Class<?> rootBeanType, javax.validation.Path pathToTraversableObject, ElementType elementType)
isCascadable in interface javax.validation.TraversableResolver