Expert |
|
Joined: Tue Sep 16, 2003 4:06 pm Posts: 318 Location: St. Petersburg, Russia
|
queryText.append(
"( " +
" select count(skill.id) " +
" from emp.skills skill " +
" where skill.id in (:skillList) " +
") = :skillListSize and " );
...
query = session.createQuery(queryText.toString());
...
query.setInteger("skillListSize", skillIds.length);
query.setParameterList("skillList", skillIds);
And this fails: Named parameter does not appear in Query: skillListSize
"... and ( select count(skill.id) from emp.skills skill where skill.id in (:skillList0_) ) = :skillList0_Size and ..."
Where these 0_ come from? If I rename skillListSize to just listSize, everything works fine
|
|