Version 10.1 by David Avendasora on 2011/05/24 15:07

Show last authors
1 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
3 {{note}}
4 EOGenerator 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.
5 {{/note}}
6
7 1. Open the .eogen file you want to use the custom templates and in the section marked titled "Templates" change the values for:
8 11. **Template Folder** the folder you just created
9 11. **Template** the template file that will create the EntityName.java file
10 11. **Subclass Template** the template file that will create the EntityName.java file.
11 [[image:Picture 1.png||border="1"]]
12 1. Save and close the .eogen file
13 1. Right-Click your .eogen file and select **EOGenerate...** to get freshly generated classes
14 [[image:Picture 2.png||border="1"]]
15
16 {{tip title="Auto Generate on Build"}}
17 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.
18 !AutoRunEOGenerator.png!
19
20 {{/tip}}