Using Custom EOGenerator Templates

Version 6.1 by David Avendasora on 2011/05/24 14:22

  1. Add your custom EOGenerator Templates to your project by creating a new Folder in the root of your project and putting your custom templates in it. Name it something descriptive like "EOGenerator" or "EOGenTemplates"
  2. Open the .eogen file you want to use the custom templates and in the section marked titled "Templates" change the values for:
    1. Template Folder  the folder you just created
    2. Template  the template file that will create the EntityName.java file
    3. Subclass Template  the template file that will create the EntityName.java file.
      Picture 1.png
  3. Save and close the .eogen file
  4. Right-Click your .eogen file and select EOGenerate... to get freshly generated classes
    Picture 2.png
Success

Auto Generate on Build

You can tell WOLips to automatically trigger the EOGenerator to run the generation process every time the incremental builder is kicked off by turning on this preference in Eclipse \-> Preferences \-> WOLips \-> Build \-> Automatically Run EOGenerator