Reputation: 50117
Is it possible to configure Grails to that changes to domain objects are never persisted unless .save()
is explicitly called?
I'm aware of .read()
, but I'm looking for a general solution that would disable dirty-checking globally.
Upvotes: 0
Views: 202
Reputation: 10848
I don't think there's an perfect solution for your question. Referring to this issue discussion, Disabling dirty-checking is impossible without interfering to Hibernate basic workings. Personally, I don't think it worth the risks.
Upvotes: 1