This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static <T> String validateEntity(final EntityManager entityManager, T obj){ | |
Validator validator = new HibernateValidator().buildValidatorFactory(new ConfigurationState() { | |
@Override | |
public boolean isIgnoreXmlConfiguration() { | |
return true; | |
} | |
@Override | |
public MessageInterpolator getMessageInterpolator() { | |
return new ResourceBundleMessageInterpolator(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.asianpaints.ms.cms.custom; | |
/** | |
* Custom TraversableResolver which work with EntityManager. | |
*/ | |
import org.jboss.logging.Logger; | |
import javax.persistence.EntityManager; | |
import javax.validation.Path; |