条件查询加入

时间:2013-07-18 05:14:15

标签: sql jpa criteria

SELECT Orders.OrderID, Customers.CustomerName, Orders.OrderDate
FROM Orders
INNER JOIN Customers
ON Orders.CustomerID=Customers.CustomerID;

我们如何在Criteria查询中编写上述SQL查询?

1 个答案:

答案 0 :(得分:0)

有关API标准的信息和示例,请参阅

http://en.wikibooks.org/wiki/Java_Persistence/Criteria