facebook

Hibernate & Velocity: Custom Code Generation

  1. MyEclipse IDE
  2.  > 
  3. Feature Requests
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #328605 Reply

    Phoenix_133
    Member

    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.

    #328635 Reply

    support-swapna
    Moderator

    Phoenix_133,

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

    #328639 Reply

    Brian Fernandes
    Moderator

    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?

Viewing 3 posts - 1 through 3 (of 3 total)
Reply To: Hibernate & Velocity: Custom Code Generation

You must be logged in to post in the forum log in