MyEclipse Forums
This thread has been locked & this forum has been archived.
Please post new topics to Java EE Development (EJB, JSP, Struts, XDoclet, etc.)
View previous topic Printable version Log in to check your private messages View next topic
Author Message
Phoenix_133
Post subject: Hibernate reverse engineering & Freemarker template supp  PostPosted: Apr 25, 2012 - 10:02 AM



Joined: Apr 25, 2012
Posts: 17

I 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/templates

I 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.
 
 View user's profile Send private message  
Reply with quote Back to top
support-joy
Post subject:   PostPosted: Apr 26, 2012 - 12:20 PM
Registered Member
Registered Member


Joined: Feb 03, 2009
Posts: 3442

Phoenix_133,

I have escalated your query. One of our dev team member would get back to you on this shortly. Sorry for the inconvenience.

_________________
Joy
MyEclipse Support
 
 View user's profile Send private message  
Reply with quote Back to top
Support-Brian
Post subject:   PostPosted: Apr 26, 2012 - 09:33 PM
Moderator
Moderator


Joined: Aug 21, 2004
Posts: 2585

Phoenix,

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.

_________________
Brian
MyEclipse Support
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
Phoenix_133
Post subject: Thank you  PostPosted: Apr 27, 2012 - 10:27 AM



Joined: Apr 25, 2012
Posts: 17

Thank 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!
 
 View user's profile Send private message  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT - 6 Hours
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2004 The PNphpBB Group
Credits