-->
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: Persist java.util.Properties with Hibernate?
PostPosted: Thu Nov 18, 2010 8:15 pm 
Beginner
Beginner

Joined: Fri Mar 21, 2008 8:07 pm
Posts: 23
How would I go about persisting an object that has a java.util.Properties object in it?

Note that a java.util.Properties object has the ability to lookup properties not only in itself, but also in a default properties list. The default properties list is itself another Properties object, so it too can have another default properties list. Looking up a single property could traverse multiple Properties objects before the property is found.

The application I'm building needs override-able properties in a hierarchical manner like Properties provides, so I was thinking of using Properties instead of implementing my own data structure. But I'm confused on how I would persist them.

Would I need to create a custom UserType? Any pointers on how to do this for this situation?

Anyone know of a how-to or other resource that demonstrates how to persist Properties in Hibernate?

I posted this question on StackOverflow, but haven't received any responses yet. Feel free to answer there if you wish:
http://stackoverflow.com/questions/4214 ... -hibernate

Thanks,
Tauren


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.