I have the following JPQL-query:
SELECT new se.callista.test.dto.EmployeeReportData(e.firstName, e.lastName,
a.city, e.employmentPeriod.startDate) FROM Employee e JOIN e.address a ORDER BY
e.lastName, e.firstName
|
where EmployeeReportData is a dto (not an entity). The query works fine
Found the error myself. It works fine now :)
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4012448#4012448
Reply to the post :
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4012448
___
jboss-user