| [news.eclipse.rt.eclipselink] Re: createquery |
sorry...I solved the problem....I jnote I forgot the index after the ?:
select this from CfgEntity as this where this.idCfg=?1 and this.cfgName=?2
BR, Enrico
Hi all,
I get an error when I try to create a query:
Query query = entityManager.createQuery(sql); ..... query.setParameter(i++, property1); query.setParameter(i++, property2); ....
my sql string is:
"select this from CfgEntity as this where this.idCfg=? and this.cfgName=?"
The errors in the createQuery call are: line 1:53 mismatched character ' ' expecting set '1'..'9' line 1:72 mismatched character '<EOF>' expecting set '1'..'9'
Any helps?
BR, Enrico