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!
|