All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.hibernate.validator.internal.engine.resolver.TraverseAllTraversableResolver Maven / Gradle / Ivy

There is a newer version: 8.0.1.Final
Show newest version
/*
 * Hibernate Validator, declare and validate application constraints
 *
 * License: Apache License, Version 2.0
 * See the license.txt file in the root directory or .
 */
package org.hibernate.validator.internal.engine.resolver;

import java.lang.annotation.ElementType;

import javax.validation.Path;
import javax.validation.Path.Node;
import javax.validation.TraversableResolver;


/**
 * {@link TraversableResolver} considering that all properties are reachable and cascadable.
 * 

* This is the default behavior if JPA is not detected in the classpath. * * @author Guillaume Smet */ class TraverseAllTraversableResolver implements TraversableResolver { TraverseAllTraversableResolver() { } @Override public boolean isReachable(Object traversableObject, Node traversableProperty, Class rootBeanType, Path pathToTraversableObject, ElementType elementType) { return true; } @Override public boolean isCascadable(Object traversableObject, Node traversableProperty, Class rootBeanType, Path pathToTraversableObject, ElementType elementType) { return true; } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy