Sorry for insist in this question, but I have tried many things and I can't resolve. I have used the validate method for attributes in other systems I have made, but this one I really don't know what is happening. Maybe (propably) it's something stupid... =D
Thank you for support. Gabriel Malimpensa. São Carlos, São Paulo, Brazil. 2015-05-27 21:43 GMT-03:00 Gabriel Malimpensa <[email protected]>: > Hi. > > I've created a validate method for an attribute but when I insert the > entity that contains such attribute, the validate is not called by the > interface. I don't know what is wrong. Someone can help? > > Code: > public String validatePrice(Double price) { > if (price >= 0) { > return null; > } else { > return "The price must not be negative!"; > } > } > > Thanks. > > Gabriel Malimpensa. > São Carlos, São Paulo, Brazil. > >
