How to deal with the Hibernate hql multi-join query result in an Object-Oriented Way?

Posted by EugeneP on Stack Overflow See other posts from Stack Overflow or by EugeneP
Published on 2010-03-12T09:20:57Z Indexed on 2010/03/12 11:47 UTC
Read the original article Hit count: 158

Filed under:
|
|
|

How to deal with the Hibernate hql multi-join query result in an Object-Oriented Way?

As I see it returns a list of Objects. yes, it is tricky and only you who write the query know what should the query return (what objects).

But are there ways to simplify things, so that it returned specific objects with no need in casting Object to a specific class according to its position in the query ?

Maybe Spring can simplify things here? It has the similar functionality for JDBC, but I don't see if it can help in a similar way with Hibernate.

© Stack Overflow or respective owner

Related posts about java

Related posts about hibernate