[
https://issues.apache.org/jira/browse/CAY-2677?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17277150#comment-17277150
]
Nikita Timofeev commented on CAY-2677:
--------------------------------------
Applied for *4.2*:
https://github.com/apache/cayenne/commit/34d417e206a9d375cdbc6f4bc194395c2b7e1c21
> Custom Class Generation Templates for Embeddables and DataMaps
> --------------------------------------------------------------
>
> Key: CAY-2677
> URL: https://issues.apache.org/jira/browse/CAY-2677
> Project: Cayenne
> Issue Type: Improvement
> Components: cgen, Modeler
> Affects Versions: 4.1
> Reporter: Stefan S.
> Assignee: Nikita Timofeev
> Priority: Major
> Fix For: 4.1.1, 4.2.M3
>
> Attachments: cayenne_modeler_additional_template_selection.diff
>
>
> Customization of code generation templates is vitual for production-ready
> projects to apply appropriate file headers, meet coding guidelines, and for
> other reasons.
> Therefore Cayenne Modeler shall support selection of custom templates for
> generation Embeddables and DataMap Java classes, as it does for Object
> Entities.
> This requires enhancements storing DataMap specific settings.
>
> The attached patch provides a basic implementation of that feature (plus some
> minor bug-fixes) in Modeler as well as cgen. Other dependencies to cgen - if
> there are any - are not tackled. The coding style aims following present code
> although some parts (e.g. template or checkbox handling) could generalized.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)