↧
Answer by Pascal Thivent for getting result set into DTO with native SQL...
You could maybe use a result transformer. Quoting Hibernate 3.2: Transformers for HQL and SQL:SQL TransformersWith native sql returning non-entity beans or Map's is often more useful instead of basic...
View Articlegetting result set into DTO with native SQL Query in Hibernate
I have a query like belowselect f.id, s.name, ss.namefrom first fleft join second s on f.id = s.idleft join second ss on f.sId = ss.idIf I could use HQL, I would have used HQL constructor syntax to...
View Article