Permalink
Browse files

Update readme.md

Test with grails 2.1.X. Perhaps this problem doesn't appears with olders versions.
  • Loading branch information...
1 parent e7642ca commit 675d9a125e6e6ea5dda1eea92547ca42e08aa83f @philixxx philixxx committed Feb 19, 2013
Showing with 8 additions and 0 deletions.
  1. +8 −0 readme.md
View
@@ -32,6 +32,14 @@ The HTML templates need to be generated individually for each domain class as th
## Customizing
+### Enable optimistic locking check
+
+By default, the JSON converter does not send the object's "version" field generated by Hibernate. Because of that, the controller does not check when concurrent modifications occur.
+To enable optimistic locking check, simply add the following in your Config.groovy:
+
+grails.converters.json.domain.include.version = true
+
+
### Using Grails RESTful URL mappings
By default Grails uses a non-RESTful URL scheme where the controller action representing the verb is part of the URL. In the Grails documentation there is a section on [configuring RESTful URL mappings](http://grails.org/doc/latest/guide/theWebLayer.html#mappingHTTP). If you want to use such a URL scheme with this plugin you will need to override the `web-app/js/grails-default.js` file that configures an Angular _$resource_ service that maps to your Grails controllers.

0 comments on commit 675d9a1

Please sign in to comment.