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)
|