-->
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.  [ 4 posts ] 
Author Message
 Post subject: Persisting a list of object
PostPosted: Tue May 29, 2007 2:12 am 
Newbie

Joined: Fri Sep 23, 2005 10:15 am
Posts: 7
Hello,
If i do have a list of object to be persisted what would be the best way to accomplishthat. Should i need to iterate the list and call save for each object ?
Thanks ,
Anuja


Top
 Profile  
 
 Post subject:
PostPosted: Tue May 29, 2007 2:44 am 
Senior
Senior

Joined: Thu May 17, 2007 2:31 am
Posts: 194
Location: Sri Lanka
Hi

If that list in a persistence object save only that element.


I think you can use second level cashes for other type of list

Amila

(Don't forget to rate if helps)


Top
 Profile  
 
 Post subject:
PostPosted: Tue May 29, 2007 2:46 am 
Beginner
Beginner

Joined: Thu Mar 29, 2007 11:57 am
Posts: 27
Yes I think this is the suitable way to do.
Looking in the api doc http://simoes.org/docs/hibernate-2.1/ap ... ssion.html I found nothing better.


Top
 Profile  
 
 Post subject:
PostPosted: Tue May 29, 2007 8:39 am 
Expert
Expert

Joined: Fri Aug 19, 2005 2:11 pm
Posts: 628
Location: Cincinnati
http://www.hibernate.org/hib_docs/v3/re ... ch-inserts

_________________
Chris

If you were at work doing this voluntarily, imagine what you'd want to see to answer a question.


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