[jboss-user] [EJB 3.0] - Re: Aliases in Queries
mazz@jboss.com
do-not-reply at jboss.com
Sat Feb 24 16:49:33 EST 2007
This is saying your User object does not have a "peter" attribute.
I think you want something like:
"from User u where u.name = :name"
and you setParameter("name", "pete").
I assume your User object has an attribute "name" (i.e. User.getName()) and I assume your User doesn't have a User.getPeter() :)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4021747#4021747
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4021747
More information about the jboss-user
mailing list