GORM - Updating all fields except specified

5 views
Skip to first unread message

Saleh Mamdouh

unread,
Jun 21, 2016, 3:09:18 AM6/21/16
to grails-de...@googlegroups.com
Hi,

In GORM, the entity class has an overloaded version of update method that takes a list of attributes to update. That is good thing.

I also find it helpful to have a method update_except ... that would update all properties except the specified ones. This is the exact opposite of the update(props).

Regards,
Reply all
Reply to author
Forward
0 new messages