0
我想使用db-unit-maven插件导出我的数据库的一部分。我在我的配置中将有序标志设置为true,以便我可以重新导入它,以避免违反完整性约束。我还指定使用配置中的表元素导出哪些表。我在下面的例子中粘贴了我想要做的事情。 但是,它会将与限制条件无关的附加表导出为在配置中手动选择的那些表。 <ordered>true</order>
是否导致列表被忽略?我错过了什么?dbunit maven插件排序设置为true看似忽略表
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>dbunit-maven-plugin</artifactId>
<version>1.0-beta-3</version>
<dependencies>
<dependency>
<groupId>com.oracle</groupId>
<artifactId>ojdbc6</artifactId>
<version>11.2.0.1.0</version>
</dependency>
</dependencies>
<configuration>
<driver>oracle.jdbc.OracleDriver</driver>
<url>${it.datasource.url}</url>
<username>${dbunit.username}</username>
<password>${dbunit.password}</password>
<dataTypeFactoryName>org.dbunit.ext.oracle.OracleDataTypeFactory</dataTypeFactoryName>
<skipOracleRecycleBinTables>true</skipOracleRecycleBinTables>
</configuration>
<executions>
<execution>
<id>execute</id>
<phase>package</phase>
<goals>
<goal>export</goal>
</goals>
<configuration>
<schema>${dbunit.username}</schema>
<format>xml</format>
<dest>target/dbunit/export.xml</dest>
<tables>
<table name="TABLE_1" />
<table name="TABLE_2" />
</tables>
<ordered>true</ordered>
</configuration>
</execution>
</executions>
</plugin>