You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cayenne.apache.org by "Andrus Adamchik (JIRA)" <ji...@apache.org> on 2017/01/13 12:48:26 UTC

[jira] [Updated] (CAY-2203) cdbimport: Mixing "includeTable" with "includeTables" results in ignored configs

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

Andrus Adamchik updated CAY-2203:
---------------------------------
    Description: 
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?

  was:
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>
{nofirmat}

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?


> cdbimport: Mixing "includeTable" with "includeTables" results in ignored configs
> --------------------------------------------------------------------------------
>
>                 Key: CAY-2203
>                 URL: https://issues.apache.org/jira/browse/CAY-2203
>             Project: Cayenne
>          Issue Type: Bug
>         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)