GORM - Updating all fields except specified

Previous Topic Next Topic
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

GORM - Updating all fields except specified

Saleh Mamdouh

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).


You received this message because you are subscribed to the Google Groups "Grails Dev Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/grails-dev-discuss/CANzPHme_4ySd%3D%3D%3DGwXL8m6DyN1HBsGzeW15SZJr%2BxXk5ua%3DN_g%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.