maven2-cgenPage edited by Andrus AdamchikChanges (1)
Full Contentcgen is an Maven 2 mojo that generates and maintains DataObjects source files based on Cayenne DataMap. By default, it is bound to the generate-sources phase. If "makePairs" is set to "true" (default), this task will generate a pair of classes (superclass/subclass) for each ObjEntity in the DataMap. Superclasses should not be changed manually, since they are always overwritten. Subclasses are never overwritten and may be later customized by the user. If "makePairs" is set to "false", a single class will be generated for each ObjEntity. By creating custom templates, cgen can also be used to generate other output (such as web pages, reports, specialized code templates) based on DataMap information. Parameters (as XML elements)
ExamplesLoad the Maven 2 plugin and configure the cgen mojo: <build> <plugins> <plugin> <groupId>org.apache.cayenne.plugins</groupId> <artifactId>maven-cayenne-plugin</artifactId> <executions> <execution> <id>cgen</id> <configuration> <!-- Configuration items go in here. See table, above. --> </configuration> <goals> <goal>cgen</goal> </goals> </execution> </executions> </plugin> </plugins> </build>
Change Notification Preferences
View Online
|
View Changes
|
Add Comment
|
- [CONF] Apache Cayenne Documentation > maven2-cgen confluence
- [CONF] Apache Cayenne Documentation > maven2-cgen confluence
- [CONF] Apache Cayenne Documentation > maven2-cgen confluence
- [CONF] Apache Cayenne Documentation > maven2-cgen confluence
