christian wrote:
Read the documentation, you want a UserType.
Thanks, Christian. I have been through
Hibernate in Action, the java doc, and the documentation at:
http://www.hibernate.org/hib_docs/v3/re ... pes-custom
The documentation states:
To implement a custom type, implement either org.hibernate.UserType or org.hibernate.CompositeUserType and declare properties using the fully qualified classname of the type.
So, my question is this...
Before I embark on the effort to write 9 of the 11 methods (I already have hashcode and equals ) required by the UserType interface for my 100 or so custom classes, is there an easier way? This isn't insurmountable, but likewise it certainly isn't trivial, and I'm eager to start on the actual mapping activity.
Thanks again,
Dave