I have two classes
class PersonName:
Salutation: String
FirstName : String
LastName : String
and
class Person:
id : Integer
Name : PersonName
...other props...
Rather than generating a table for PersonName
I would like SQLAlchemy to simply use a string column and serialize the instance to JSON (and deserialize it when it is fetched). I don't need deep queries or anything, just basic serialization.
Is this possible?