I have two tables
RoleMasterLinkwithuserIdandRoleIdRoleMasterwithRoleIdandFunctionalRole
I need to achive
Select rm.FunctionalRole from RoleMaster rm join RoleMasterLink rml on rml.RoleId = rm.RoleId where rml.userId='yesh'
User can have many roleIds, I need to get FunctionalRole based on RoleId
How to achive this with Spring Data Jpa, gone through many links but exactly couldn't get.