grails/grails-data-mapping — pull request #46 by candrews (2014-10-20 15:36:45+00:00)
Title: Work with SpringSessionSynchronization changes from Spring 4.1.0.RC2

In Spring 4.1.0.RC2, the SpringSessionSynchronization constructor changed. See https://jira.spring.io/browse/SPR-9020

This commit ensures compatibility with Spring before 4.1.0.RC2 and after 4.1.0.RC2.

The signature change to the SpringSessionSynchronization constructor was the addition of a new "bool" parameter named "newSession". Here's the commit in Spring: spring-projects/spring-framework@5cbb1fc#diff-4340a4820b773949b5258699f411324f
I'm not positive I got the logic right in my commit. I'm hoping one of you folks who knows more about this part of the Grails code can tell if the logic is right around "newSession" - I set it true always in this commit, but I don't know if that's correct.