码迷,mamicode.com
首页 > Web开发 > 详细

hibernate 异常

时间:2018-04-07 15:00:25      阅读:210      评论:0      收藏:0      [点我收藏+]

标签:add   data   process   import   nat   com   java   .config   ica   

Caused by: org.hibernate.DuplicateMappingException: duplicate import: Engin refers to both two.entity.Engin and allview.entity.Engin (try using auto-import="false")
    at org.hibernate.cfg.Configuration$MappingsImpl.addImport(Configuration.java:2892)
    at org.hibernate.cfg.HbmBinder.bindPersistentClassCommonValues(HbmBinder.java:681)
    at org.hibernate.cfg.HbmBinder.bindClass(HbmBinder.java:595)
    at org.hibernate.cfg.HbmBinder.bindRootClass(HbmBinder.java:325)
    at org.hibernate.cfg.HbmBinder.bindRoot(HbmBi
nder.java:178)
    at org.hibernate.cfg.Configuration$MetadataSourceQueue.processHbmXml(Configuration.java:3816)
    ... 48 more

hibernate 异常

标签:add   data   process   import   nat   com   java   .config   ica   

原文地址:https://www.cnblogs.com/cloudshining/p/8733081.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!