- This topic has 4 replies, 3 voices, and was last updated 19 years, 11 months ago by Kevin_L.
-
AuthorPosts
-
Kevin_LMemberHi Guys,
I have search through your forum and didn’t find what I am looking for. Will you show me how I can use the files that is created by Middlegen with MyEclipse… I mean hibernate tool with MyEClipse is nice but , if I understand it right, it doesn’t create association that reflect the database reference constraints…right?
Well please point me to the right direction.
K~
Riyad KallaMemberMoving to OT > Soft dev (we don’t offer direct support for middlegen with ME). I can assure you that our enhancements to the DB explorer and mapping tools are far from done. Hopefully the next few releases should bring you what you are missing.
Kevin_LMemberI am not asking for direct support for Middlegen…….I thought may be you guys know how to configure MyEclipse to add hibernate files that are generated from middlegen. The reason is because I already stated using MyEclipse Hibernate tool and it created files. And the realized that it didn’t create associations….but then someone told me middlegen create associations….
I guess the only way for me to implement associations through hibernate objects is doing manually to edit the hibernate mapping files?
Please let me know if I am right or not….I don’t mind doing that…I just want to make sure I understand about the myeclipse’s capabilities and limits for sure.
K~
support-jeffMemberMiddlegen -> ME: only through xdoclet markup that you might be able to get middlegen to produce (do not quote me on that)
Associations: If your database supports foreign keys, then objects you create classes and mappings for using ME should contain many-to-one associations for the child table (so if PARENT table contributes a FK to CHILD table, Child class and mapping will have association to Parent class). Unfortunately, collections and more complex mappings are not supported yet, but I am working on this for the next major release of ME.
And, yes, you can modify the files produced by ME to suit your needs. Just be aware that if you chose to re-generate mappings after doing so, you will lose your changes.
Kevin_LMemberHi Jeff,
Thanks for the answer! That is all I need! I will just modify the files manually then. No Problem.
As Riyad recommended, Hibernate In Action book surely helped me understanding hibernate.🙂
I can’t wait for the new features you guys gonna have for the future releases….10x ,
K~ -
AuthorPosts