Is it possible to configure Grails to never change a domain object unless .save() is called?
Is it possible to configur开发者_如何转开发e 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.
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.
加载中,请稍侯......
精彩评论