I have a, for me, complex OJB problem, and am looking
for pointers.
I have two classes: a Test, and a PanelOfTests. I
have two tables: Tests_Table, and Panel_Test_Table.
Here is the pseudocode:
public class Test {
int testID;
String category; // can be "TE" for test, "PA" for
panel
}
public class PanelOfTests extends Test {
Collection tests; // a collection of Test objects
}
table Tests_Table
test_key, int
category, varchar
table Panel_Test_Table
panel_test_key, int
panel_key, int
test_key, int
A PanelOfTests then is in fact a Test, one that has a
category of "PA," and which contains 1-n other Tests.
To find the tests that a given panel (say, 55)
contains I get all the rows in Panel_Test_Table where
panel_key = 55 and instantiate a Test object for each
of the test_keys.
Any good ideas on how to do this in OJB metadata/row
readers/? I am unable to change the database layout.
Thanks, Gary
__________________________________
Do you Yahoo!?
Yahoo! Mail - More reliable, more storage, less spam
http://mail.yahoo.com
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]