Hibernate 3.6以上版本会提示错误:

Unable to get the default Bean Validation factory

 

在hibernate.cfg.xml里增加一属性解决:

<property name="javax.persistence.validation.mode">none</property>