I have this select:
SELECT name,surname,role, height, age, nazov_typu, nazov, body
from users
join type on type.idTYPE=users.type_idtype and users.team_idteam=?
join rola on rola.idROLA=users.rola_idROLA
join status on status.idSTATUS= users.STATUS_idSTATUS
Could you help me with creating namedQuery?