Using Custom EOGenerator Templates

Last modified by David Avendasora on 2011/05/24 15: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 "Templates", "EOGenerator" or "EOGenTemplates"
  2. InformationEOGenerator templates do not need to be included in your built application so it's best to keep them out of the Resources directory or any other place that is automatically included in the built application. It shouldn't hurt to include them, but there is simply no need to.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 "Automatically Run EOGenerator" in the Eclipse Preferences.
AutoRunEOGenerator.png