SyntaxFix
Write A Post
Hire A Developer
Questions
calling first merge() (to update persistent instance), then lock(LockMode.NONE) (to attach the current instance, not the one returned by merge()) seems to work for some use cases.