-->
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: Persisting Hashtable
PostPosted: Wed Dec 14, 2005 12:07 am 
Newbie

Joined: Wed Dec 14, 2005 12:05 am
Posts: 8
I have a hashtable that I am simpily using for key/values. Is there any way to persist this hashtable to the database?

Thanks in advance,

Mardo


Top
 Profile  
 
 Post subject:
PostPosted: Wed Dec 14, 2005 5:50 am 
Senior
Senior

Joined: Sat May 14, 2005 8:40 am
Posts: 130
If the Hashtable is a collection member of another class, you can map it via the <map> element.

_________________
Cuyahoga


Top
 Profile  
 
 Post subject: Thanks
PostPosted: Fri Dec 23, 2005 1:00 am 
Newbie

Joined: Wed Dec 14, 2005 12:05 am
Posts: 8
This did the trick thank you.

My Mapping files looks like so, for anyone else that would like to use.


<map name="Parameters" table="WorkListParameters" lazy="true">
<key column="WorkListId"/>
<index column="`Key`" type="string"/>
<element column="`Value`" type="string"/>
</map>


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