- This topic has 3 replies, 3 voices, and was last updated 12 years, 7 months ago by Phoenix_133.
-
AuthorPosts
-
Phoenix_133MemberI was wondering, if myEclipse (Pro version) can handle freemarker templates with hibernate reverse engineering. As our current project already has those, we would like to continue using them. It seems, that even though I provide a template directory on reverse engineering, the templates are not called.
I am using SLES 11 (Suse Linux Enterprise Server), SP2
The project lies @:
/opt/myDevPath/workspace/MyProject
The templates lie @:
/opt/myDevPath/workspace/MyProject/templatesI used the templates provided with the hibernate-tools by JBoss. I also noticed, that the online help only provides a link to velocity templates. I don’t mind, that the help is old (and I found a post, where you said, that this is already on your todo-list), but does myEclipse with its hibernate-version support FreeMarker templates? How can I find out, which OFFICIAL hibernate version is used within the myEclipse?
I found, that if I select Menu > MyEclipse > Preferences > MyEclipse > Project Capabilities > Hibernate > that those jar files are listed. There I found hibernate3.jar, but opening the Manifest did not reveal any information I was looking for.I would also like to know, how I can change the project capabilites later on, e.g. if I would like to change the supported hibernate version from 3.3 to 3.2.
Thank you for your help.
support-joyMemberPhoenix_133,
I have escalated your query. One of our dev team member would get back to you on this shortly. Sorry for the inconvenience.
Brian FernandesModeratorPhoenix,
1) No – we do not support the freemarker templates – all our customizations to the generation are based on highly modified velocity templates.
I do not recall a plan to support the freemarker templates, could you please point me to the post? This isn’t something for which support is often requested.
2) On that same preference page, the README button should give you a more specific breakdown on the different versions of Hibernate that are distributed with MyEclipse.
3) Changing the Hibernate version is primarily achieved by replacing the Hibernate 3.3 containers with Hibernate 3.2 containers using the Java Build path page and additionally changing the version property in the .myhibernatedata file You would also need to close and reopen the project.
Hope this helps, please let me know if you have further questions.
Phoenix_133MemberThank you for the quick reply.
Your help to switch the hibernate version helped a lot.It would be a nice-to-have feature (I know you are on a tight schedule), if you could remove or change the hibernate support (e.g. change the version or remove hibernate support alltogether) just as easily with myEclipse, as it was to add it using the GUI.
Nevertheless, if you know where to look for the settings, this works, fine, too.
My comment concerning your todo-list was refering to the update of the outdated tutorial on reverse enineering in general using Hibernate.Thanks again!
-
AuthorPosts