Hi
I have read the following tutorial about using JPA/Hibernate Entities as domain classes in grails:
http://www.infoq.com/articles/grails-ejb-tutorialI have build separate .jar file with all my @Entities and I have placed it in "lib" subdirectory of my grails project.
I have already managed to produce controllers and views for my classes(using "grails generate-all...").
Now I would like to add validation(constraints).
I have made appropriate groovy files with constraints, named it correctly(as the tutorial said) but I do not know where to place this files.
I have already tried placing *Constraints.groovy files in my .jar file(each in appropriate package) and also in src/java/(package) directory of my grails project.
After placing these files I restarted the server.
The problem is, I do not see any changes. hasErrors() still returns false even for incorrect input.
Where should I put *Constraints.groovy files if I use external .jar with Entities?
Kind regards,
Chris