Hi,

I want to export my database in a flat xml file using dbunit-maven-plugin.
All works fine for table, but I have problems to export views of database (SQL Error: SQLCODE=-206, SQLSTATE=42703 : name is not valid in the context where it was specified... The name of the view is not recognized). I use this view in my app, and have checked spelling name.

For this operation, i use dbunit-maven-plugin :

        <groupId>org.codehaus.mojo</groupId>
                <artifactId>dbunit-maven-plugin</artifactId>
                <version>1.0-beta-3</version>

and a configuration node :

    <configuration>
                    <driver>com.ibm.db2.jcc.DB2Driver</driver>
                    <url>[...]</url>
                    <username>[...]</username>
                    <password>[...]</password>
<dataTypeFactoryName>org.dbunit.ext.db2.Db2DataTypeFactory</dataTypeFactoryName>
<metadataHandlerName>org.dbunit.ext.db2.Db2MetadataHandler</metadataHandlerName>
<hibernate.dialect>org.hibernate.dialect.DB2Dialect</hibernate.dialect>
                    <datatypeWarning>true</datatypeWarning>
                    <dest>export.xml</dest>
                    <format>flat</format>
                    <encoding>iso-8859-1</encoding>
                    <ordered>false</ordered>

        <tableType>TABLE,VIEW</tableType> <!--not working ???-->
[...]
</configuration>

The tableType configuration seems to be ignored... Do I miss something ?

Thanks all for help

Regards,
Sylvain

        
Rectorat de Grenoble

<<attachment: sylvain_anselmino.vcf>>

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email

Reply via email to