org.hibernate.cfg.beanvalidation
Class HibernateTraversableResolver
java.lang.Object
org.hibernate.cfg.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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HibernateTraversableResolver
public HibernateTraversableResolver(EntityPersister persister,
ConcurrentHashMap<EntityPersister,Set<String>> associationsPerEntityPersister,
SessionFactoryImplementor factory)
isReachable
public boolean isReachable(Object traversableObject,
Path.Node traversableProperty,
Class<?> rootBeanType,
Path pathToTraversableObject,
ElementType elementType)
- Specified by:
isReachable
in interface TraversableResolver
isCascadable
public boolean isCascadable(Object traversableObject,
Path.Node traversableProperty,
Class<?> rootBeanType,
Path pathToTraversableObject,
ElementType elementType)
- Specified by:
isCascadable
in interface TraversableResolver
Copyright © 2001-2012 Red Hat, Inc. All Rights Reserved.