-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: workaround for HB-863?
PostPosted: Wed Apr 14, 2004 8:11 pm 
Regular
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>


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.