You may need to call the validate() method on the domain instance. On Nov 7, 3:26 am, Jeremiah Elliott <[email protected]> wrote: > I am working on a project that is evaluating the use of grails and gae. We > are unable to specify constraints that are actually enforced. > > We have tried a grails style like: > static constraints = { > id(visible:false) > userName(blank: false) > firstName(blank: false) > middleName(blank:false, nullable:false) > lastName(blank: false) > } > > and annotations such as: > @Basic(optional = false) > �...@column(nullable = false) > > but either way we can insert data that should not be allowed. In particular > we are trying to specify that a field can not be null or empty. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google App Engine for Java" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en -~----------~----~----~----~------~----~------~--~---
