В Hibernate получается вот так
ОШИБКА
org.hibernate.NonUniqueResultException: query did not return a unique result: 10
QUERY
String query="
select distinct p.* from project as p inner join project_system_user_relation as psur on psur.project=p.project_id inner join system_user as su on su.system_user_id=psur.system_user "
List<Project> projectList = ( getSession().createSQLQuery(query).addEntity("p", Project.class)
.setResultTransformer(Criteria.DISTINCT_ROOT_ENTITY).list();