I want to write this query in criteria format.
SELECT orders. order_id, suppliers.name
FROM suppliers
INNER JOIN orders
ON suppliers. supplier_id = orders. supplier_id
ORDER BY order_id;
There are plenty of examples on the internet about this topic. Take a look at the following page: https://www.objectdb.com/java/jpa/query/jpql/from#FROM_and_JOIN_in_Criteria_Queries
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.