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#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...