You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cayenne.apache.org by "Oleg Artyukevich (JIRA)" <ji...@apache.org> on 2014/03/10 12:01:43 UTC

[jira] [Updated] (CAY-1870) cgen - smarter default for 'superPkg' and 'destDir',

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

Oleg Artyukevich updated CAY-1870:
----------------------------------

    Attachment: cay1870.patch

Change default value of CayenneGeneratorMojo.destDir, where “project.build.sourceDirectory” provides access to the source directory. While class generation running, change value of superPkg to subpkg.auto, if it's null.
 
It's hard to test default values of CayenneGeneratorMojo since we use 1.0-beta-1 version of testing plugin (maven-plugin-testing-harness). Maven provide testing of default values from version 2.0.1+ , but then we should change other maven dependecies. So, I skip this changes in pom.xml.

> cgen - smarter default for 'superPkg' and 'destDir', 
> -----------------------------------------------------
>
>                 Key: CAY-1870
>                 URL: https://issues.apache.org/jira/browse/CAY-1870
>             Project: Cayenne
>          Issue Type: Bug
>            Reporter: Andrus Adamchik
>            Assignee: Andrus Adamchik
>             Fix For: 3.2.M2
>
>         Attachments: cay1870.patch
>
>
> Thinking of the following improvements to cgen [1] to minimize needed configuration:
> 1. (Maven flavor only) destDir - default must be src/main/java.
> 2. superPkg - default must be not the same package as subclass, but rather subclass_pkg.auto IIRC we already have this in the Modeler, but this should be a universal default.
> [1] http://cayenne.apache.org/docs/3.1/cayenne-guide/including-cayenne-in-project.html#maven-projects



--
This message was sent by Atlassian JIRA
(v6.2#6252)