MyEclipse Forums
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
Phoenix_133
Post subject: Hibernate & Velocity: Custom Code Generation  PostPosted: Jul 31, 2012 - 09:01 AM



Joined: Apr 25, 2012
Posts: 17

When you currently reverse engineer using hibernate, you get a GUI, that asks you for two specific artifact types: DAOs and POJOs. But what, if you e.g. want to also generate other custom classes appart from DAOs and POJOs?

The current system looks into the folders named "dao" and "pojo" within the template directory to find the respective "entry point" templates.

In our case, I would also like to generate extra classes, that should reside in an extra folder outside of the existing dao and pojo folders.

It would be nice, if the GUI for reverse engineering would offer such a feature, that you could somehow specify a custom folder on the same level as dao and pojo, but e.g. for your "service", "form", "gluCode" and other classes you may want to generate.

The generator would then ask for some startup parameters like the custom folder location and name and other parameters and you are ready to go.

Is there a solution for this already? Maybe not with the gui, but on linux command line interface?

Kind regards.
 
 View user's profile Send private message  
Reply with quote Back to top
support-swapna
Post subject:   PostPosted: Aug 01, 2012 - 05:25 AM



Joined: Nov 11, 2010
Posts: 2154

Phoenix_133,

I have escalated it to the dev team. They are looking into it.

_________________
Swapna
MyEclipse Support
 
 View user's profile Send private message  
Reply with quote Back to top
Support-Brian
Post subject:   PostPosted: Aug 01, 2012 - 08:16 AM
Moderator
Moderator


Joined: Aug 21, 2004
Posts: 2515

Phoenix,

One of the problems here might be getting you the right information from the database that you would need for your generation.

If you examine the velocity templates that are currently in use, you should see a number of variables being used to generate the code. Some of these variables are also contextual and not available for all types of files generated. Is there enough information here for you to generate the additional files you need?

_________________
Brian
MyEclipse Support
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT - 6 Hours
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2004 The PNphpBB Group
Credits