I have 3 tables :
User ---- many to many------ Userapp ------ many to many ----------- Application
User have :
- userId
- userName
UserApp :
- userId
- applicationId
Applicaiton :
- applicationId
- applicaitonName
I didn't success to create a HQL query for grab every User who get one application.
My HQL :
Code:
select a.userId, a.userName from Application b join b.userId a where b.userId = 1
Simplify query i would like to do :
Code:
from Application WHERE Userapp.userID = 1
could you help me please :) ?
Regards