I am using JPA in my project.
I came to a query in which I need to make join operation on five tables. So I created a native query which returns five fields.
Simple way to converting SQL query to POJO class collection ,
Query query = getCurrentSession().createSQLQuery(sqlQuery).addEntity(Actors.class); List list = (List) query.list(); return list;