I am new to hibernate criteria API. I have written the below query in SQL. How to write it in the Hibernate criteria?
select * from Employee ju, Address ua where
ua.loginname=ju.loginname
and ua.countryname='USA'
and ju.siteprimcontact=1;
Here is a tutorial on the JPA Criteria API that you can use to learn how to write such queries: https://docs.oracle.com/javaee/6/tutorial/doc/gjivm.html
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.