You do realize that your query is returning a list of strings *not* a list of
Users?
This is what I would do..
| List<User> existing = em.createQuery(
| "select u from User u JOIN FETCH u.account where
username=#{user.username}")
| .getResultList();
|
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4113100#4113100
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4113100
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user