-->
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: Where clause in mapping configuration
PostPosted: Thu Feb 10, 2005 2:50 pm 
Newbie

Joined: Thu Feb 10, 2005 2:33 pm
Posts: 7
Dear All

I'm in trouble to configure this mapping in hibernate:
I have two attributes in class X to class Y. Lets say y1 and y2.
So, there will be two rows in table Y with the records y1 and y2, both with a foreign key to x, and what differs the record y1 (or y2) to attribute/object reference y1 (or y2) in x is a value of a column, called type.
The <set>,<bag>,etc have a where clause, where I can make this distinction.
But, is there a way to do this mapping without use de <one-to-many> tag?
For example with two tags <one-to-one> ?

thanks!

Danilo.

Hibernate version: 2.1.6 (9.8.2004)


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.