Hi everybody!
I am using hibernate3.0 to retrieve data from database. But I am facing problem in using select clause in From clause. for example:
Code:
select
sum(sTotal) + sum(Disc) as Total
From (
select disc.sDiscount as Disc from discount as disc,
select pos.Total as sTotal from PosTables as pos
)
This query is not original one but it will use select clause in from clause, as it is given above. I have doubt tht this functionlity is not supported in hibernate.Please let me know whether such query is possible in HQL or not . Thanks in advance