This content has been marked as final.
Show 3 replies
-
1. Re: Weird entity behavior
smithbstl Oct 9, 2007 11:08 PM (in response to swd847)Are you sure you have your relationship set to be bidirectional?
-
2. Re: Weird entity behavior
swd847 Oct 9, 2007 11:23 PM (in response to swd847)Yes, especially because Account actually has the foreign key, and the relationships work fine in both directions normally.
The only time there is a problem is if the entity is first loaded by portfolio.getAccounts(). If the entity has already been loaded getAccounts() works fine. -
3. Re: Weird entity behavior
pmuir Oct 10, 2007 9:17 AM (in response to swd847)Make sure you are using the most recent hibernate annotations. Ask on the hibernate forum and have a testcase if possible.