Hello,
Our application uses generic TransferObjects that we want to persist into a database using Hibernate, but that are not Java Beans. For example you would not retrieve a "name" property from a "user" TransferObject through userTO.getName() but through userTO.getStringValue("name").
Before we write specific subclasses for our TransferObjects, we would like to know if there is a way to have Hibernate invoke custom methods like our getStringValue(String) instead of using Java Beans compliant properties.
Thanks for your help!
|