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
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user