Let's say I have a model class A who has a member of class B which is not a model. How can make it so that class A can be saved as an entity and class B transformed into something more pleasent for the database such as a string.