DBUNIT: Insert with Composite Primary Key(No Primary Key Defined on Table)

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

DBUNIT: Insert with Composite Primary Key(No Primary Key Defined on Table)

Sam_Suisse
Hello, Trying to insert into a database table with DBunit however, since the table doesn't explisitly define a primary key. The table defines a unique composite key. DBunit fails while execution with a "org.dbunit.dataset.NoPrimaryKeyException"... googled on this one and came across the following helpful site - http://dbunit.wikidot.com/noprimarykeytable... With reference to the sample provided on this site... the issue is that it only supports defining a single primary key field.......Similarly, how do we provide it with a composite unique key...