Or there you can use XML to describe the object and save the XML in database field, after you read the XML out , you can parse the XML with the object
The defect is you need load the object template after/before you read /write into database
The defect is you need load the object template after/before you read /write into database