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.
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public final boolean | isCascadable(Object
object hosting traversableObject, Path.traversableProperty
or null if validateValue is calledthe traversable property traversableProperty,type of the root object passed to the Validator
or hosting the method or constructor validated rootBeanType, Path path from the root object to
pathToTraversableObject, ElementType traversableObject
(using the path specification defined by Bean Validation)either elementType)FIELD or METHODImplements jakarta. @Valid.
|
| public final boolean | isReachable(Object
object hosting traversableObject, Path.traversableProperty
or null if validateValue is calledthe traversable property traversableProperty,type of the root object passed to the Validator
or hosting the method or constructor validated rootBeanType, Path path from the root object to
pathToTraversableObject, ElementType traversableObject
(using the path specification defined by Bean Validation)either elementType)FIELD or METHODImplements jakarta. |
| LOG | back to summary |
|---|---|
| private static final Log LOG | |
| JPATraversableResolver | back to summary |
|---|---|
| public JPATraversableResolver() | |
| isCascadable | back to summary |
|---|---|
| public final boolean isCascadable(Object traversableObject, Path. Implements jakarta. Doc from jakarta. Determines if the Jakarta Bean Validation provider is allowed to cascade validation on
the bean instance returned by the property value
marked as
Note that this method is called only if
| |
| isReachable | back to summary |
|---|---|
| public final boolean isReachable(Object traversableObject, Path. Implements jakarta. Doc from jakarta. Determines if the Jakarta Bean Validation provider is allowed to reach the property state.
| |