-->
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: Hibernate persistence and Transaction
PostPosted: Wed Aug 11, 2010 5:54 am 
Newbie

Joined: Wed Aug 11, 2010 5:49 am
Posts: 1
Hi everyone
i'm new to hibernate. i have a task presently that i need to solve with hibernate.
The description is like this -

1. Get some records from different tables from a remote database based on some criteria.
2. Insert the records in a local database.
3. Delete the inserted records from the remote database once the insertion in complete.

i'll be very glad if anyone will proffer a solution to this problem.


Top
 Profile  
 
 Post subject: Re: Hibernate persistence and Transaction
PostPosted: Tue Aug 17, 2010 8:11 am 
Beginner
Beginner

Joined: Thu Dec 11, 2008 8:18 am
Posts: 35
Do the all operation in a single transaction context.
if anything fails it will rollback.


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.