Folks,
Has anybody been able to use hibernate to load a java bean that has multiple set methods for the same property? Many of my business objects have multiple single argument setters, and the only way that I can keep hibernate from choking is to eliminate all but one of them.
I have reviewed the java bean spec, the hibernate doc, and Hibernate in Action, and have not found anything that indicates that muliple setters are not allowed.
The only think that I can think of is that I need to explicitly specify which set method to use in such cases. But, it seems like Hibernate should be able to select the appropriate method based on the signature.
Has anybody had any success with multiple setters?
Thanks,
Dave
|