我正在jpa eclipselink中开发一个服务器应用程序。 这是我的查询,当我在我的sqlworkbench中运行它时工作正常:
=SUM(A1:E1)-C1
我有3个表SELECT *
FROM `BuildingsTable` AS Buliding
LEFT JOIN ServiceCallsTable AS Calls ON ( Calls.`buildingId` = Buliding.id )
LEFT JOIN SchedualReviewsTable AS Review ON ( Review.`buildingId` = Buliding.id )
WHERE Buliding.id =1
,BuildingsTable
和ServiceCallsTable
SchedualReviewsTable
类
buildingID
变量
Task
和ServiceCallsTable
来自SchedualReviewsTable
类
这是我的代码:
Task
如何在JPA中编写此查询?