Results 1 to 5 of 5
- 06-15-2007, 04:14 PM #1
Senior Member
- Join Date
- Jun 2007
- Posts
- 110
- Rep Power
- 0
org.hibernate.DuplicateMappingException: Duplicate class/entity mapping project
I had this error
org.hibernate.DuplicateMappingException: Duplicate class/entity mapping project.hibernate.User
and I was searching on Internet about that. It appears because there is 2 persistent class with the same name. my question is:
Is it count the extension ? because the classes that I used the same name are
User.java y User.hbm.xml.
Thanks
- 07-04-2007, 05:14 AM #2
Senior Member
- Join Date
- Jun 2007
- Posts
- 130
- Rep Power
- 0
You surely have two User.hbm.xml in the classpath,
check it
- 07-04-2007, 05:17 AM #3
Senior Member
- Join Date
- Jun 2007
- Posts
- 132
- Rep Power
- 0
User.java and User.hbm.xml are different
check if User.hbm.xml has the same attributes that User.java has.
Maybe you forgot some attribute
- 03-25-2010, 08:44 AM #4
Member
- Join Date
- Mar 2010
- Posts
- 1
- Rep Power
- 0
我的属性一样也出现这个错误了!!!!!
- 05-13-2011, 10:04 PM #5
Member
- Join Date
- May 2011
- Posts
- 1
- Rep Power
- 0
Re: This may help
I had this problem. Check out the last two posts of this URL
mapping file not found: .hbm.xml
those were the solution for me.
Similar Threads
-
random string are duplicate
By googgoo in forum New To JavaReplies: 3Last Post: 04-03-2008, 10:01 AM -
Help with image mapping
By coco in forum AWT / SwingReplies: 1Last Post: 08-07-2007, 04:06 AM -
About servlet-mapping
By Heather in forum Java ServletReplies: 1Last Post: 07-14-2007, 06:00 PM -
Mapping of class Association with hibernate
By Albert in forum JDBCReplies: 1Last Post: 07-06-2007, 06:27 AM -
org.hibernate.ejb.Version <clinit> INFO: Hibernate EntityManager 3.2.0.CR1
By Heather in forum JDBCReplies: 2Last Post: 06-30-2007, 03:01 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks