您的位置:首页 > 移动开发

Atitit.解决org.hibernate.DuplicateMappingException: Duplicate class/entity mapping

2014-11-10 00:03 459 查看
Atitit.解决org.hibernate.DuplicateMappingException: Duplicate class/entity mapping

1. 排除流程:::

@Deprecated

public class HibernateSessionFactory {

static {

try {

configuration.configure(propertyFile);

sessionFactory = configuration.buildSessionFactory();

} catch (Exception e) {

System.err

.println("%%%% Error Creating SessionFactory %%%%");

e.printStackTrace();

throw (e); //ati o8j

}

}

三,走变化兰..

Caused by: org.hibernate.HibernateException: Connection cannot be null when 'hibernate.dialect' not set

at

作者::老哇的爪子Attilax艾龙,EMAIL:1466519819@qq.com

转载请注明来源: http://blog.csdn.net/attilax

2. 原因::

Cfg not验证..class 加载的时候儿trycatch兰...走马张.马张..rebuild的时候儿re加载..走丞李中个兰..
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐