Persisting time ojects as entities instead of value types?
问题 I'm using Joda Time DateTime to handle date and time. I persist objects of this kind using the class PersistentDateTime bundled in the jodatime hibernate code. I have large collections of DateTime objects, and I currently persist them in the following way (an excerpt of an hibernate mapping file follows): <set name="validInstants" sort="natural"> <key column="myobject_id"/> <element column="date" type="myproject.utilities.hibernate.types.PersistentDateTime"/> </set> Doing so, i.e. storing