-->
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: java.util.PriorityQueue
PostPosted: Wed Jul 11, 2007 3:57 pm 
Newbie

Joined: Wed Jul 11, 2007 3:53 pm
Posts: 1
I am new to hibernate and cannot figure out how to persist a PriorityQueue (or Queue for that matter). I understand how to persist a List and Set, but a Queue is nether of these. Any help would be appreciated.

Thanks
trispad


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jul 11, 2007 5:17 pm 
Newbie

Joined: Thu Nov 09, 2006 9:42 pm
Posts: 13
You might want to look into wrapping your queue with a persistent object storing the queue contents in a list, marking the queue as transient and initializing the queue in the setter method for the list.

--
Tim


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.