just started using JPA today, so i’m preety new to it.
How would one say "SELECT login.ID, userID, logInTime, logOutTime, user.ID AS 'uID', surname FROM login, user WHERE login.userID = user.ID" in JPA?
I need to join two tables via the userID.
I looked through a couple of tutorials on the net, but couldn’t quite find the anwser to this.
Thanx!
just started using JPA today, so i’m preety new to it. How would one
Share
Assuming that login and user are now objects, and also assuming that relation between login and user are that one user have many logins will be somthing like this
Renember i’m assuming the mapping between the entities