As i read in documentation I'm allowed to use EL in queries.
So supported with this article :
http://www.hibernate.org/hib_docs/entitymanager/reference/en/html/queryhql.html
i produced the following piece of code
        User existing = (User) em.createQuery("SELECT OBJECT(u) FROM User u 
WHERE u.login=#{newUser.login} AND 
u.passwdHash=#{newUser.passwdHash}").getSingleResult();

AFAiK the query itself should be correct. But at runtime i get the following 
exeption :
http://phpfi.com/265208

Shouldnt it return null if no results were found ?

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4088813#4088813

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4088813
_______________________________________________
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to