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: Question about session.connection().commit();
PostPosted: Wed Sep 22, 2010 4:21 pm 
Newbie

Joined: Mon Feb 09, 2009 11:52 am
Posts: 11
So I am working on a project and part of what I want to do is to migrate them to 3. Along the way I am finding and replacing deprecated methods. I am doing ok but I am not sure what to do with session.connection().commit();. It appears people were told to use it by IBM can someone give me the code to replace it? Can I just remove it and let the flush do its thing?

Thanks

Jackie


Top
 Profile  
 
 Post subject: Re: Question about session.connection().commit();
PostPosted: Wed Sep 22, 2010 4:48 pm 
Expert
Expert

Joined: Wed Mar 03, 2004 6:35 am
Posts: 1240
Location: Lund, Sweden
session.getTransaction().commit()


Top
 Profile  
 
 Post subject: Re: Question about session.connection().commit();
PostPosted: Fri Sep 24, 2010 3:36 pm 
Newbie

Joined: Mon Feb 09, 2009 11:52 am
Posts: 11
Awesome thanks, any chance on getting directed toward an explanation of the change?


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:
cron
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.