I 'd like to convert the query below to hql to return me a List<Article> because with createSqlQuery it is impossible , I must convert the result manually :
here is the sql query :
Query query = getSessionFactory().getCurrentSession().createSQLQuery(
"select *
from article
where articleID in (select articleID
from article_depot
where depotID = "+depotID+")"
);
thank you in advance