« Return to Thread: How to use the validate() method of a existing domain class

How to use the validate() method of a existing domain class

by Felipe Cypriano :: Rate this Message:

Reply to Author | View in Thread

Hello,

I need to reuse some entities in my Grails app, they have a method called validate() that uses Hibernate Validator to do the validation. But when I call myEntity.validate() the result is true event when it should be false. I think grails is executing it's own validate(), how could I tell grails to not override existing methods?

Regards,
---
Felipe Cypriano

 « Return to Thread: How to use the validate() method of a existing domain class