srikotesh
asked on
I am facing difficulties while converting sql query into hibernate hql query
Hi Experts,
I am facing difficulties while converting my sql query into hibernate hql query.
IF my sql query is small i mean with out joins and subqueries, i can easily converting that query to hql.
IF my sql query having joins ,subqueries and sql query size big i am not in position to convert that into a hql.
i can use native sql but in my project it is not allowed to use native sqls.
i am taking much time to convert my sql query to hql query.
Can any one suggest me any ideas,how quickly we can convert our mysql query to hql query.
Thanks,
I am facing difficulties while converting my sql query into hibernate hql query.
IF my sql query is small i mean with out joins and subqueries, i can easily converting that query to hql.
IF my sql query having joins ,subqueries and sql query size big i am not in position to convert that into a hql.
i can use native sql but in my project it is not allowed to use native sqls.
i am taking much time to convert my sql query to hql query.
Can any one suggest me any ideas,how quickly we can convert our mysql query to hql query.
Thanks,
ASKER
I will share few of sql queries whenever i am trying
ASKER
Hi
Could you please convert this query hql.
sql query:
=========
Select CI_ID,@pv:=CI_parent_CI as parentid from (select CI_ID,CI_parent_CI from master order by CI_ID desc) as master join (select @pv:=236283) tmp where CI_ID=@pv;
Could you please convert this query hql.
sql query:
=========
Select CI_ID,@pv:=CI_parent_CI as parentid from (select CI_ID,CI_parent_CI from master order by CI_ID desc) as master join (select @pv:=236283) tmp where CI_ID=@pv;
This question needs an answer!
Become an EE member today
7 DAY FREE TRIALMembers can start a 7-Day Free trial then enjoy unlimited access to the platform.
View membership options
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
You could start by posting your query that you are trying to convert.