[jboss-user] [JBoss Seam] - Re: Error calling action method of component

vladimir.ralev@jboss.com do-not-reply at jboss.com
Tue May 15 06:54:14 EDT 2007


Obviously hibernate is trying to execute "select u.username from com.vds.seamregistration.bean.User u where u.username=#{user.username}".

Most likely you are using something like:

  | em.createQuery("select u from User u where u.username=#{user.username}").getSingleResult();
  | 

in the register method.

You should be using something like:

  | em.createQuery("select u from User u where u.username=:username").setParameter("username",user.username).getSingleResult();
  | 

where user must be injected in the register bean.

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

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4045740



More information about the jboss-user mailing list