使用hibernate时出现的错误,请大侠帮忙。
Exceptioninthread"main"org.hibernate.MappingException:Duplicatepropertymappingofnamef...
Exception in thread "main" org.hibernate.MappingException: Duplicate property mapping of name found in org.crazyit.app.domain.Person
at org.hibernate.mapping.PersistentClass.checkPropertyDuplication(PersistentClass.java:482)
at org.hibernate.mapping.PersistentClass.validate(PersistentClass.java:472)
at org.hibernate.mapping.RootClass.validate(RootClass.java:235)
at org.hibernate.cfg.Configuration.validate(Configuration.java:1332)
at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1835)
at lee.PersonManager.main(PersonManager.java:24) 展开
at org.hibernate.mapping.PersistentClass.checkPropertyDuplication(PersistentClass.java:482)
at org.hibernate.mapping.PersistentClass.validate(PersistentClass.java:472)
at org.hibernate.mapping.RootClass.validate(RootClass.java:235)
at org.hibernate.cfg.Configuration.validate(Configuration.java:1332)
at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1835)
at lee.PersonManager.main(PersonManager.java:24) 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询