Regular |
 |
Joined: Sat Feb 21, 2004 8:54 pm Posts: 60 Location: Lakewood, California
|
hi, newbie here. i think i have the problem described by hb-863. i.e. a *-1 where the foreign key in the child is not the pk of the parent. so my parent.getChildren returns an empty set!.
this would seem to be a common problem that has been around for a while. so i am wondering if there are any standard solutions for a workaround.
i can not change the db, so one way would be to hack the generated mapping file and the java file or subclass the parent and override getChidlren() and use an hql query to load the set. are there any other more elegant solutions?
has anyone had to do this a few times and has come up with an pattern that works well?
any pointers will be appreciated.
thanks
_________________ <http://tayek.com/>, co-chair <http://www.ocjug.org/>, actively
seeking telecommuting work. hate spam?
<https://www1.ietf.org/mailman/listinfo/asrg>
|
|