cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nikita Timofeev (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (CAY-2203) cdbimport: Mixing "includeTable" with "includeTables" causes ignored configs
Date Fri, 27 Jan 2017 15:24:24 GMT

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

Nikita Timofeev updated CAY-2203:
---------------------------------
    Issue Type: Sub-task  (was: Bug)
        Parent: CAY-2212

> cdbimport: Mixing "includeTable" with "includeTables" causes ignored configs
> ----------------------------------------------------------------------------
>
>                 Key: CAY-2203
>                 URL: https://issues.apache.org/jira/browse/CAY-2203
>             Project: Cayenne
>          Issue Type: Sub-task
>         Environment: Maven 3.3.9, Java 8
>            Reporter: Andrus Adamchik
>            Assignee: Nikita Timofeev
>
> I started with the following cdbimport configuration in pom.xml:
> {noformat}
> <catalog>
>     <name>c1</name>
>     <includeTable>
>         <pattern>table1</pattern>
>         <excludeColumn>.*XYZ</excludeColumn>
>     </includeTable>
>     <includeTables>
>         <pattern>table2</pattern>
>         <pattern>table3</pattern>
>     </includeTables>
> </catalog>
> {noformat}
> It mostly worked, except "excludeColumn" spec was ignored. I changed this to this (replacing
one "includeTables" with multiple "includeTable" tags) :
> {noformat}
> <catalog>
>     <name>c1</name>
>     <includeTable>
>         <pattern>table1</pattern>
>         <excludeColumn>.*XYZ</excludeColumn>
>     </includeTable>
>     <includeTable>table2</includeTable>
>     <includeTable>table3</includeTable>
> </catalog>
> {noformat}
> And now everything started working. So we should either fix this scenario. Or even better
- disallow plural tags (such as "includeTables") ... 
> Is plural tag support automatically added by Maven, or is this our code?



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message