- This topic has 26 replies, 4 voices, and was last updated 17 years, 1 month ago by
Riyad Kalla.
-
AuthorPosts
-
Riyad KallaMemberWe are looking into this right now, B should have the ref.
ls_torontoMemberThanks so much for your assistance 🙂
lukewshannonMemberAny news on this?
ls_torontoMemberIt seems like I am not the only one having this problem.
I think it has to do with my tables being type InnoDB. Search for “foreign” in the link below and you will see someone had the exact same problem as me in Feb of last year on an older build of myEclipse.
http://www.myeclipseide.com/PNphpBB2+file-printview-t-11030-start-0.html
I don’t know what else to try. When I am browsing my tables in the DB explorer my foreign keys show up fine, but in the generated DAO there are no finds for them in the DAO’s for the child tables. Weird.
Luke
Riyad KallaMemberLuke, we are looking at this for 5.5 but it might slip to a service release right after because we are *crunched* with JEE 5 work at the moment that must make it into 5.5
ls_torontoMemberOk, thanks. Is there a work around that comes to mind? I am new to hibernate so I am not sure, but would it be very difficult to add this in myself?
Riyad KallaMemberI’m not aware of a workaround right now, sorry.
ls_torontoMemberWell the one work around is to generate everything at once, this gets the child collections in the parent POJO.
Then generate each of the children tables on their own with no support at all for reference tables. This gives you a findByParentId method in each child class.
This way you can at least get a collection of the child records using the id for the parent.
Once the application can figure this all out, this is going to be a very strong tool.
Luke
Brian FernandesModeratorLuke,
I know what you are talking about, I have replicated your use case internally and filed a report against it.
Unfortunately we are too late in the 5.5M2 release cycle to incorporate a fix for this in the upcoming release, but I will try and get it into the GA release which should be shortly after.I need to look into whether a workaround is possible until then, it might be if you were willing to modify some templates.
Thanks for reporting this, good to know you find the DAOs useful otherwise.
lukewshannonMemberHi;
I would be very open to modifying templates.
Please let me know if you come across something I should try.
Luke
ls_torontoMemberHas anything been done on this issue?
Riyad KallaMemberls_toronto,
Unfortunately not yet. I have made a note to bump the priority and hopefully get it in a release soon. -
AuthorPosts