[ojb-users] 1->M<->N
Brought to you by:
thma
From: Grim S. <gri...@ya...> - 2002-06-12 21:02:26
|
I have three classes, Person, Account, Role. A person can have multiple accounts, and each account can have multiple roles. In addition the Role can have many accounts. Making this a 1->M<->N relationship. Using the ODMG stuff, when I save Person, it saves Person and Account, but doens't even try to save Role... OJB also doesn't throw any errors, or do anything else to indicate a problem. I logged what SQL OJB was generating, and it's not even attempting to hit the ACCOUNT_ROLE table, much less the ROLE table. Can OJB handle this style of relationship using what is in the tutorials? Or am I missing something? James Barrows __________________________________________________ Do You Yahoo!? Yahoo! - Official partner of 2002 FIFA World Cup http://fifaworldcup.yahoo.com |