You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cayenne.apache.org by "Olga Bondareva (JIRA)" <ji...@apache.org> on 2016/03/28 00:40:25 UTC
[jira] [Created] (CAY-2069) Including templates in dataMap
Olga Bondareva created CAY-2069:
-----------------------------------
Summary: Including templates in dataMap
Key: CAY-2069
URL: https://issues.apache.org/jira/browse/CAY-2069
Project: Cayenne
Issue Type: Improvement
Affects Versions: 4.0.M3
Reporter: Olga Bondareva
Including templates in dataMap file. You can define templates like this:
<class-generator-template type="...">
<template file="..."/>
</class-generator-template>
After saving they appear in tools->generate classes in Modeler and you can use them for cgen. You can also add, edit and delete templates in Modeler.
In Maven and Ant you can generate classes from templates defined in dataMap (but there are some restrictions such you can't define more then one template for each type)
To ensure that you want to generate classes from templates defined in dataMap use
<isClassGenerationDefined>false</isClassGenerationDefined>
Otherwise
<isClassGenerationDefined>true</isClassGenerationDefined>
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)