-->
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: How to serialize Hibernate entity?
PostPosted: Thu Oct 15, 2009 1:08 pm 
Newbie

Joined: Thu Oct 15, 2009 12:53 pm
Posts: 1
hi, I'm looking for the best way to serialize a Hibernate entity to a string like
table1:column1=val1; column2=val2;...
table2:column1=val1; column2=val2;...
where tableX is the actual DB table name and ColumnX are actual DB column names.

So far I'm trying it using ClassMetadata and methods like getProperties(), getPropertyValue(). But I'm not sure if it's the best way and I'm also having problem with handling the properties which are Hibernate entities themselves: I'm note sure how to differentiate them from regular properties.
I feel there should be a better way )

Thank you!


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.