|
After further experimentation it appears that using both the @Column and @Formula annotation on a getter problematic. When I remove the @Formula, the problem goes away. So to work around the problem, I made a separate getter and setter. The new getter and setter only have the @Formula annotation and not @Column. This resolves the CastClassException by the Hibernate Validator.
|