Hibernate + dbUnit + Oracle Express Edition

  • Thread starter Karl Heinz Marbaise
  • Start date
K

Karl Heinz Marbaise

Hi there,

i'm trying to get the above to run, cause the same thing is working with
MySQL (5.0) well...

The problem seemed to be that dbUnit is throwing an
AbiguousTableNameException which seemed to be a bug?(or not..)..

I have found information about using a schemata name in upper case
but this changed nothing....

Java 1.5
dbUnit 2.1
Hibernate 3.2 (with annotations).
Oracle Express Edition 10.2.0..

I appreciate any hint or question....

Thanks in advance.
Kind regards.
Karl Heinz Marbaise
 
G

gnehzeix

Hi Karl,

I had the same problem a little while ago. By using the
DatabaseConnection constructor with schema name parameter, I got rid of
this "AbiguousTableNameException".

My code looks like this:

@Override
protected IDatabaseConnection getConnection() throws Exception
{
....
....
IDatabaseConnection connection = new DatabaseConnection(conn,
"MY_SCHEMA");
return connection;
}


Hope this will help...

Ljay

=============================================================
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,682
Members
48,796
Latest member
Greg L.

Latest Threads

Top