This content has been marked as final. Show 2 replies
in HQL you can drop the "select" clause, but i don't think you can do that in the JPA query language. did you try something like "select e from Employee e where e.name='myName'"?
More examples here http://docs.oracle.com/javaee/5/tutorial/doc/bnbtg.html .
Edited by: jtahlborn on Apr 13, 2012 1:01 PM
Wow it works, thanks so much!
I indeed tried that way but I forgot an "e" from query :)