Hi All,
OK, I read the reference and the Hibernate book and probably overloaded myself. Excuse me if those references contain the answers, but I can't seem to find it.
My issue is I have a class composed of some value objects. In particular java's URL and InternetAddress classes, and am trying to figure out the best way to persist them. They lack appropriate accessor and mutator methods and I want to treat them as immutable. It seems to me they should be stored as a string in the same table as the object they belong to, and reconstituted via the contructor. I am not sure the best way to map these types of objects. One apprioach I was thinking of is to use simple helper String getter and setter that hibernate would interact with and would deal with the creation of the value object.
Any Ideas or thoughts?
Tom
|