-->
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.  [ 1 post ] 
Author Message
 Post subject: Reading and writing collections
PostPosted: Thu Aug 06, 2009 7:28 am 
Newbie

Joined: Mon Oct 06, 2008 10:46 am
Posts: 3
Our application uses values and ranges as data. Our records are in the form:
non-uniq-key start finish payload

We are constantly having to do the following operations:

1. new instance comes in.
2. load all non-uniq-key entries from database.
3. add db records to merger class.
4. add new instance (from 1) to merger class.
5. do merge. Some instances will have some of there values changed and some will be deleted if they are aligned or overlapping.
6. delete all instances in db for non-uniq-key.
7. add instances from the merge.
8. commit

As you can see this is a bit of a mouthful. Please can someone give me a couple of pointers and a bit of help on how to set about achieving this. I'm having particular trouble telling hibernate that everything in this list represents all instances of non-uniq-key and anything not in this list should be deleted.

Is this even possible?


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

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.