-->
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.  [ 1 post ] 
Author Message
 Post subject: Embedding two references of the same type
PostPosted: Sat Dec 15, 2007 10:14 am 
Newbie

Joined: Sat Dec 15, 2007 9:59 am
Posts: 1
Hello,

I have a problem with embedding two references of the same type in a persistable class. Everything works fine with one reference, but with two, the following error occurs:

"Repeated column in mapping for entity... use update=false, insert=false"

Hibernate thinks there are two fields with the same name. I've also tried AttributeOverrides to override the name of the fields but that doesn't work.

Any ideas? Where should I use update=false, insert=false ?

Thanks,
Omid


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

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.