alesj wrote:
Code:
Query queryToReturn = entityManager.createQuery(ejbQuery);
That's it?
Give more code.
I try to explain better...
first of all i had problem with RC9 version, then i switch back and now i'm using
Implementation-Version: JBoss EJB 3.0 RC7 - FD
(taken from manifest.mf of jboss-ejb3.jar)
and i have no more this trouble.
After i create query with the previuos code i set 4 parameters to my query with:
queryToReturn.setParameter(<paramName>,<paramValue>);
then i invoke
queryToReturn.getSingleResult()
because i'm expecting a single result, but i got an Exception because i had selected 4 records... i check the database... with the 4 parameters i set i had to select only one record.... for some reason seems that 1 parameter is lost!?!?!?
With eclipse debug i see that inside query implementations the map had 3 top level parameter.entry (key,value) and inside one of these there's one more parameter.entry (key,value)
thanks to all