如何使用休眠条件编写此查询?

时间:2020-05-21 07:42:04

标签: sql hibernate hibernate-criteria

我想以标准格式编写此查询。

SELECT orders. order_id, suppliers.name
FROM suppliers
INNER JOIN orders
ON suppliers. supplier_id = orders. supplier_id
ORDER BY order_id;

1 个答案:

答案 0 :(得分:0)

互联网上有很多有关此主题的示例。请看以下页面:https://www.objectdb.com/java/jpa/query/jpql/from#FROM_and_JOIN_in_Criteria_Queries