[jboss-user] [EJB 3.0] - Re: Aliases in Queries

micho do-not-reply at jboss.com
Sat Feb 24 16:58:12 EST 2007


I exchanged the two codeexamples.
if there is no attribute "peter" why does the query 
"from User where (peter = :name)"
work.

If I add the alias u and write
from User u where (u.peter = :name)
I get the exception.

I coded the attribute like this:
@Column(name = "peter")
  |   public String getHugo()
  |   { return mHugo; }
  |   

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

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



More information about the jboss-user mailing list