facebook

Custom generation of abstract classes with myEclipse-hib

  1. MyEclipse Archived
  2.  > 
  3. Database Tools (DB Explorer, Hibernate, etc.)
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #222768 Reply

    Simon Cevc
    Member

    Is there a way to customize the way MyEclipse-Hibernate tool generates the abstract classes, because i need to add some extra functionality to the getters and setters, and there is no point in having an automated class generation tool if i have to override EVERY getter and setter? Any hidden text files with code templates or anything :)?

    greeting,
    Martin

    #222769 Reply

    Simon Cevc
    Member

    Plus the tool never adds the scheme name in front of the table name in the hibernate mapping xmls,
    so i have to edit every xml manually …

    #222796 Reply

    support-jeff
    Member

    You can modify the velocity templates used to generate the code and mappings to suit your needs. There are located in the templates directory inside the com.genuitec.eclipse.hibernate plugin.

    #222850 Reply

    Simon Cevc
    Member

    Great news, thanks!

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: Custom generation of abstract classes with myEclipse-hib

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