Joined: Tue Mar 23, 2004 10:40 am Posts: 9 Location: toronto
|
I have two tables A and B. B has a foreign key to A. When I use middlegen to generate the Class A and B, Class A has a Set of Class Bs and Class B has a Class A reference. This is good but I would also like Class B to contain the id of Class A.
This would allow me to find a Class A if I loaded class B lazily (by comparing A.id with B.A_id).
Im guessing I need to add the A_id field to class B and add something to the ClassB mapping file.
Thanks in advance :)
_________________ Be happy :)
|
|