You could use method isAttached - http://grails.org/doc/latest/ref/Domain%20Classes/isAttached.html.
Newly created objects are not attached to current session until .save() is called, the objects that were loaded from database are attached to the session.