In Object Relational Bridge is there a way to map a 1-to-1 reference where the class for the reference is mapped to the same table as the containing class (i.e., there's no join involved)?
For example there are two classes PATIENT and ADDRESS and I have to persist to one dB2 table TE_PATIENT_INFO.
public class Patient{
Int id;
String name;
...
...
Address address;
....
...
}
Public class address{
String city;
...
}
Can somebody please help me with the XML maping(repository.xml) for this scenario
Thanks
-
Mapping multiple classes to the same DB Table in OJB (0 messages)
- Posted by: Ezhil Jothiprakasam
- Posted on: August 06 2002 20:19 EDT