Hi Jadeite,
As far as I know, the org.apache.struts.validator.DynaValidatorForm class is a subclass of org.apache.struts.action.DynaActionForm. The DynaActionForm provides a set of dynamic (non-existent as get/set methods per se) JavaBean properties using a HashMap. If you see the Javadoc API for this class (
http://struts.apache.org/struts-action/ ... index.html) you can figure out that the dynaValues is used for accessing these properties.
I don't think that Hibernate can do any sort of 'introspection' on classes with this 'fake' JavaBean properties. If you use plain ActionForm subclasses you can probably overcome this issue.
On the other hand, I don't think tying the Form objects (inherent to any Struts-based
web layer) to a Hierarchy in a different layer, such as the business model domain, is a good idea. Of course, this is only my humble opinion.
Regards and good luck!
Carlos