Thursday, July 11, 2013

Check if grails domain is dirty

Suppose you want to save a grails domain if it has been modified only. To get the list of dirty property name you will do this
objectInstance.dirtyPropertyNames

No comments:

Post a Comment