求解Exception in thread "main" org.hibernate.MappingException这种错的原因?
Exceptioninthread"main"org.hibernate.MappingException:Repeatedcolumninmappingforentit...
Exception in thread "main" org.hibernate.MappingException: Repeated column in mapping for entity: com.pb.hibernate.po.Login column: UESERNAME (should be mapped with insert="false" update="false")
at org.hibernate.mapping.PersistentClass.checkColumnDuplication(PersistentClass.java:670)
at org.hibernate.mapping.PersistentClass.checkPropertyColumnDuplication(PersistentClass.java:692)
at org.hibernate.mapping.PersistentClass.checkColumnDuplication(PersistentClass.java:714)
at org.hibernate.mapping.PersistentClass.validate(PersistentClass.java:468)
at org.hibernate.mapping.RootClass.validate(RootClass.java:215)
at org.hibernate.cfg.Configuration.validate(Configuration.java:1149)
at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1334)
at com.pb.hibernate.dao.BlobLoginDAO.<init>(BlobLoginDAO.java:27)
at com.pb.hibernate.test.Test.main(Test.java:23)
以上错误原因是什么啊? 展开
at org.hibernate.mapping.PersistentClass.checkColumnDuplication(PersistentClass.java:670)
at org.hibernate.mapping.PersistentClass.checkPropertyColumnDuplication(PersistentClass.java:692)
at org.hibernate.mapping.PersistentClass.checkColumnDuplication(PersistentClass.java:714)
at org.hibernate.mapping.PersistentClass.validate(PersistentClass.java:468)
at org.hibernate.mapping.RootClass.validate(RootClass.java:215)
at org.hibernate.cfg.Configuration.validate(Configuration.java:1149)
at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1334)
at com.pb.hibernate.dao.BlobLoginDAO.<init>(BlobLoginDAO.java:27)
at com.pb.hibernate.test.Test.main(Test.java:23)
以上错误原因是什么啊? 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询