Bug in dbUnit 2.4.8? dbUnit config does not allow to set property PROPERTY_IDENTITY_COLUMN_FILTER

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Bug in dbUnit 2.4.8? dbUnit config does not allow to set property PROPERTY_IDENTITY_COLUMN_FILTER

Andreas Guther-4
Version: dbUnit 2.4.8


Hi,

I am trying to set an implementation of the IColumnFilter to my
DatabaseConfig object which is needed in the InsertIdentityOperation to
declare the name of the indentity column (which in our case is different
from the default one dbUnit assumes).

Unfortunately the DababaseConfig setProperty method does not know about
this property and fails with

java.lang.IllegalArgumentException: Did not find property with name
'http://www.dbunit.org/properties/mssql/identityColumnFilter'
        at
org.dbunit.database.DatabaseConfig.convertIfNeeded(DatabaseConfig.java:2
44)
        at
org.dbunit.database.DatabaseConfig.setProperty(DatabaseConfig.java:216)


See also
-- http://www.dbunit.org/faq.html#usertypeidentity
-- http://www.dbunit.org/properties.html
--
http://www.dbunit.org/apidocs/org/dbunit/ext/mssql/InsertIdentityOperati
on.html#PROPERTY_IDENTITY_COLUMN_FILTER



InsertIdentityOperation:

public static final String PROPERTY_IDENTITY_COLUMN_FILTER =
 
"http://www.dbunit.org/properties/mssql/identityColumnFilter";

Is there another way to tell dbUnit the name of the Identity column
without following the naming schema (I cannot start renaming column
names)?



------------------------------------------------------------------------------
Forrester recently released a report on the Return on Investment (ROI) of
Google Apps. They found a 300% ROI, 38%-56% cost savings, and break-even
within 7 months.  Over 3 million businesses have gone Google with Google Apps:
an online email calendar, and document program that's accessible from your
browser. Read the Forrester report: http://p.sf.net/sfu/googleapps-sfnew
_______________________________________________
dbunit-user mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/dbunit-user
Reply | Threaded
Open this post in threaded view
|

Re: Bug in dbUnit 2.4.8? dbUnit config does not allow to set property PROPERTY_IDENTITY_COLUMN_FILTER

gunipati81
Did you get any workaround for the below issue?




Andreas Guther-4 wrote
Version: dbUnit 2.4.8


Hi,

I am trying to set an implementation of the IColumnFilter to my
DatabaseConfig object which is needed in the InsertIdentityOperation to
declare the name of the indentity column (which in our case is different
from the default one dbUnit assumes).

Unfortunately the DababaseConfig setProperty method does not know about
this property and fails with

java.lang.IllegalArgumentException: Did not find property with name
'http://www.dbunit.org/properties/mssql/identityColumnFilter'
        at
org.dbunit.database.DatabaseConfig.convertIfNeeded(DatabaseConfig.java:2
44)
        at
org.dbunit.database.DatabaseConfig.setProperty(DatabaseConfig.java:216)


See also
-- http://www.dbunit.org/faq.html#usertypeidentity
-- http://www.dbunit.org/properties.html
--
http://www.dbunit.org/apidocs/org/dbunit/ext/mssql/InsertIdentityOperati
on.html#PROPERTY_IDENTITY_COLUMN_FILTER



InsertIdentityOperation:

public static final String PROPERTY_IDENTITY_COLUMN_FILTER =
 
"http://www.dbunit.org/properties/mssql/identityColumnFilter";

Is there another way to tell dbUnit the name of the Identity column
without following the naming schema (I cannot start renaming column
names)?



------------------------------------------------------------------------------
Forrester recently released a report on the Return on Investment (ROI) of
Google Apps. They found a 300% ROI, 38%-56% cost savings, and break-even
within 7 months.  Over 3 million businesses have gone Google with Google Apps:
an online email calendar, and document program that's accessible from your
browser. Read the Forrester report: http://p.sf.net/sfu/googleapps-sfnew
_______________________________________________
dbunit-user mailing list
dbunit-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dbunit-user