-->
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.  [ 2 posts ] 
Author Message
 Post subject: Save method not saving
PostPosted: Thu Jan 18, 2007 12:12 pm 
Newbie

Joined: Thu Jan 18, 2007 11:28 am
Posts: 5
Hello everyone.
I am writing a standalone java app to copy data from one SQL Server db to another. I stepped through my code and all the inserts (done one at a time) are supposedly successful (no hibernate exception was thrown). But when I looked in the target database, only 1 of the 200 records was actually saved. Is there any settings that I need to include in my hbm.xml or config file to allow multiple inserts?

Thanks


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jan 18, 2007 3:12 pm 
Newbie

Joined: Thu Jan 18, 2007 11:28 am
Posts: 5
Nevermind. I was setting the autocommit() to a different session instead of the one I use to save() my object.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 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.