You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cayenne.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2016/03/28 00:57:25 UTC

[jira] [Commented] (CAY-2069) Including templates in dataMap

    [ https://issues.apache.org/jira/browse/CAY-2069?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15213654#comment-15213654 ] 

ASF GitHub Bot commented on CAY-2069:
-------------------------------------

GitHub user ollybondareva opened a pull request:

    https://github.com/apache/cayenne/pull/91

    CAY-2069 Including templates in dataMap

    

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/ollybondareva/cayenne cgen

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/cayenne/pull/91.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #91
    
----
commit 3e32acd2062289dce24267213e90d0ebf5bfc11a
Author: ollybondareva <ol...@gmail.com>
Date:   2016-02-25T14:26:53Z

    ongoing work on cgen

commit 1acd7dad24f0d2da0afd781c439c75a33bce56c2
Author: olga <ol...@gmail.com>
Date:   2016-03-03T12:52:25Z

    cgen modeler

commit b22586e7a4bf522395fd336c4ee27dc032180ac6
Author: olga <ol...@gmail.com>
Date:   2016-03-03T12:52:25Z

    cgen modeler

commit 6be8d186c38d6886e598230f9e34671884cd3589
Author: olga <ol...@gmail.com>
Date:   2016-03-22T14:25:23Z

    template

----


> 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)