Quote:
I have to execute a monster query which will have links between multiple tables (abt 5-6 tables). Executing it using HQL may not be a good idea. Hence it was suggested that I should create a view to help us running queries on that model. My question is how can Hibernate help in this type of situation?
1- be sure you cannot do it in hql, give an example to see why hql cannot solve your query.
If you aren't able to execute this query in hql, maybe that mean that this query isn't oo which isn't bad. But in this case why don't you use a stored procedure and call it in a DAOJBDC method?
2- if you simplify this query using a view and really want to use this view with mapped objets, just map an object to it, what is difficult?