-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 
Author Message
 Post subject: Using dbunit
PostPosted: Fri Feb 02, 2007 9:44 am 
Newbie

Joined: Tue Nov 28, 2006 3:52 am
Posts: 5
Hi there

I'm trying to use dbunit with Hibernate, just like JPwH suggests but it doesn't work in my system.

But this works

protected void setUp() throws Exception {
for (DatabaseOperation op : beforeTestOperations) {
IDatabaseConnection conn = getConnection();
conn.getConnection().setAutoCommit(true);
op.execute(conn, dataSet);
conn.getConnection().setAutoCommit(false);
}
}

I hope is useful.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Feb 02, 2007 9:54 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 7:19 pm
Posts: 2364
Location: Brisbane, Australia
I have no problem using dbUnit - its a very useful tool.


Top
 Profile  
 
 Post subject: Re: Using dbunit
PostPosted: Tue Aug 04, 2009 4:40 pm 
Newbie

Joined: Thu Jul 24, 2008 1:23 pm
Posts: 16
Thanks! This has been driving me nuts!


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.