How to work with the result of a query to combine multiple Hibernate hql in an Object-Oriented Way?
As I see it, it returns a list of objects. Yes, it’s complicated, and only you who write the request know what should return the request (which objects).
But are there ways to simplify things so that they return specific objects that do not need to be cast? An object for a particular class in accordance with its position in the request?
Maybe Spring can simplify things? It has similar functionality for JDBC, but I don’t see if it can help in this way with Hibernate.
source
share