I'm in the process of upgrading a large application from 1.3.7 to 2.1. An issue I just ran into is this: If you use a Map constructor on a domain object, it will not populate the transient fields anymore.
eg:
MyDomainObject o = new MyDomainObject (
var1: 'test',
var2: 'test',
var3: 'test',
var4: 'test',
transientVar1: 'test',
)
In this case , the tranient var will not be populated. You need to do a regular assignment
For many reasons, we are actually moving away from using Map constructors anyways (IDE support etc), but that's in process.
Figured I'd put this out there in case anyone else gets burned. I assume this is planned to some degree, and is probably because the Map constructor is trying to be more efficient about only dealing with 'known' fields? (in this case persisted only)??