-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 posts ] 
Author Message
 Post subject: Help with "duplicate property mapping"
PostPosted: Tue Apr 19, 2005 8:45 pm 
Senior
Senior

Joined: Tue Mar 02, 2004 6:17 pm
Posts: 151
Hi,

I'm getting:

Code:
org.hibernate.MappingException: duplicate property mapping: type


which is meaningless to me. Does anyone have any idea how to go about tracking down the problem? I am using Hibernate Annotations so I'm not sure what is ending up in the mapping file.

Thanks,
Gili


Top
 Profile  
 
 Post subject: Re: Help with "duplicate property mapping"
PostPosted: Tue Apr 19, 2005 10:08 pm 
Expert
Expert

Joined: Mon Feb 14, 2005 12:32 pm
Posts: 609
Location: Atlanta, GA - USA
cowwoc wrote:
Hi,

I'm getting:

Code:
org.hibernate.MappingException: duplicate property mapping: type


which is meaningless to me. Does anyone have any idea how to go about tracking down the problem? I am using Hibernate Annotations so I'm not sure what is ending up in the mapping file.

Thanks,
Gili


You need to include a lot more information in order for everyone to be able to help you.

Please read http://www.hibernate.org/160.html


Top
 Profile  
 
 Post subject: Re: Help with "duplicate property mapping"
PostPosted: Tue Apr 19, 2005 11:37 pm 
Senior
Senior

Joined: Tue Mar 02, 2004 6:17 pm
Posts: 151
I strongly suspect this is because I have an inherited class that contains a property "type" and the default discriminator column name for inheritance is also called "type".

I'll post more information as it becomes available.


Top
 Profile  
 
 Post subject: Re: Help with "duplicate property mapping"
PostPosted: Wed Apr 20, 2005 12:35 am 
Senior
Senior

Joined: Tue Mar 02, 2004 6:17 pm
Posts: 151
cowwoc wrote:
I strongly suspect this is because I have an inherited class that contains a property "type" and the default discriminator column name for inheritance is also called "type".

I'll post more information as it becomes available.


I was right. Changing the discriminator column name fixed the problem.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.