Class HibernateTraversableResolver
- java.lang.Object
-
- org.hibernate.boot.beanvalidation.HibernateTraversableResolver
-
- All Implemented Interfaces:
TraversableResolver
public class HibernateTraversableResolver extends Object implements TraversableResolver
Use Hibernate metadata to ignore cascade on entities. cascade on embeddable objects or collection of embeddable objects are accepted Also use Hibernate's native isInitialized method call.
-
-
Constructor Summary
Constructors Constructor Description HibernateTraversableResolver(EntityPersister persister, ConcurrentHashMap<EntityPersister,Set<String>> associationsPerEntityPersister, SessionFactoryImplementor factory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isCascadable(Object traversableObject, Path.Node traversableProperty, Class<?> rootBeanType, Path pathToTraversableObject, ElementType elementType)
boolean
isReachable(Object traversableObject, Path.Node traversableProperty, Class<?> rootBeanType, Path pathToTraversableObject, ElementType elementType)
-
-
-
Constructor Detail
-
HibernateTraversableResolver
public HibernateTraversableResolver(EntityPersister persister, ConcurrentHashMap<EntityPersister,Set<String>> associationsPerEntityPersister, SessionFactoryImplementor factory)
-
-
Method Detail
-
isReachable
public boolean isReachable(Object traversableObject, Path.Node traversableProperty, Class<?> rootBeanType, Path pathToTraversableObject, ElementType elementType)
- Specified by:
isReachable
in interfaceTraversableResolver
-
isCascadable
public boolean isCascadable(Object traversableObject, Path.Node traversableProperty, Class<?> rootBeanType, Path pathToTraversableObject, ElementType elementType)
- Specified by:
isCascadable
in interfaceTraversableResolver
-
-