[jboss-user] [JBoss Seam] - EJB-QL - simple query problem :/

Yacho do-not-reply at jboss.com
Wed Sep 26 08:44:53 EDT 2007


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



More information about the jboss-user mailing list