potential fix for GRAILS-9750 (detached criteria ast transformations for
annotated jpa entities)
Merge pull request #23 from zyro23/GRAILS-9750

potential fix for GRAILS-9750