-->
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.  [ 2 posts ] 
Author Message
 Post subject: MappedBy two Columns
PostPosted: Tue Jun 29, 2010 5:20 am 
Beginner
Beginner

Joined: Wed Mar 03, 2010 4:06 am
Posts: 21
Hi,

i have two tables (customers and accounts). There is a 1:n relationship between these tables. The problem is that the account-table looks like that:

account-id, customer1, customer2

so want I want to set up is that the customer-class contains a Set of accounts but therefore hibernate has to invoke two different queries or use a UNION (afaik hibernate doesn't support UNIONs) because the customer-id may placed in customer1 or customer2 of the account-table.

Are there any configurations to help the out? Thanks a lot.

Jonny


Top
 Profile  
 
 Post subject: Re: MappedBy two Columns
PostPosted: Wed Aug 04, 2010 3:09 am 
Newbie

Joined: Sat Jul 24, 2010 6:21 am
Posts: 2
Hi,

I have same problem, plz someone help me.
_______________
Credit Repair


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 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.