title: SQL query to JPA Joins
body: <p>just started using JPA today, so i'm preety new to it.<br>
  How would one say <br><code>"SELECT login.ID, userID, logInTime, logOutTime, user.ID AS 'uID', surname FROM login, user WHERE login.userID = user.ID"</code> in JPA?<br>
  I need to join two tables via the userID.
  <br>
  I looked through a couple of tutorials on the net, but couldn't quite find the anwser to this.<br>
  Thanx!</p>