grails - How to break inheritance -


i using grails. i'm trying use values 1 source method of searching source.

def numbers=[]; //collection of info maps somemaps.each{     numbers.add(it.id); } //this line generates error def info=info.findall("from info i.site in (:xsites)",['xsites':numbers]); 

but error

subtype 'java.lang.integer' of reloadable type myservices.info not reloadable: 

how can break values of 'numbers' away info no longer have type in inheritance chain?

well, first question be, there relationship between info & site. if so, why don't try actual identifier. in,

def info=info.findall("from info i.site.id in :xsites, ['xsites':numbers]"); 

or worse comes worse, use createcriteria

def info=info.createcriteria().list{     site{         'in' ('id', numbers)     }  } 

Comments

Popular posts from this blog

javascript - AngularJS custom datepicker directive -

javascript - jQuery date picker - Disable dates after the selection from the first date picker -