Only Read and Insert In Domain Class

In my recent Project, I wanted to create a domain class in which records could only be added and read and no update was to be allowed on any of the records and I found a very nice way of doing it. Adding [java] static mapping = { cache usage: 'read-only' version false } [/java] in the domain class did the trick for me...

by Sachin
Tag: read only