-->
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: flush and save
PostPosted: Mon Feb 21, 2005 5:51 am 
Newbie

Joined: Wed Jan 19, 2005 6:41 am
Posts: 7
Hi !
i have a priblem in save objects.
i save many objecs in loop then after loop i commit it but only last object save and befor objects not save.

example:

......
.......
List l=session.find(...);
while(...){
........
save (ob);
}
session.flush();
transaction.comit();
session.close();


Top
 Profile  
 
 Post subject: Re: flush and save
PostPosted: Mon Feb 21, 2005 11:49 am 
Regular
Regular

Joined: Thu Dec 18, 2003 2:14 am
Posts: 103
Location: Brooklyn, NY
Need more code than this. For instance, how is "obj" created? no way to tell what is happening.
Also perhaps mappings, and classes.


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.