Since the pojo model class is created at run time (from groovy for example), it can't be passed to enhancer because the enhancer needs the class file accessible by URL. I can't found the way to write that created class into filesystem, to pass it to enhancer. Maybe it's a issue from asm library. If there are any manner to enhance a groovy class, please make any post about it. Thanks.