cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Olga Bondareva (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (CAY-2069) Including templates in dataMap
Date Fri, 01 Apr 2016 16:20:25 GMT

     [ https://issues.apache.org/jira/browse/CAY-2069?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Olga Bondareva updated CAY-2069:
--------------------------------
    Description: 
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.
Datamap->Templates tab

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>

  was:
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>


> 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.
> Datamap->Templates tab
> 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)

Mime
View raw message