[jboss-user] [JBoss Seam] - Re: How to get a child/reference entity to load when the par

dustismo do-not-reply at jboss.com
Fri Dec 14 17:56:38 EST 2007

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

More information about the jboss-user mailing list