Deepika Mahajan

Greenhorn
+ Follow
since Dec 03, 2008
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Deepika Mahajan

Thanks for the reply.

Actually my problem is, I want to execute a complex Update SQL query with nested Select queries in it, using hibernate. But As hibernate dosen't support Update with nested Select clauses to a level, I am trying to execute SQL query using <sql-query> tag not HQL query. But I got error saying - update operation is supported via HQL only.

Now I have split this update query to two parts, Select first and then Update. But here also i am stuck.

Can you tell me how to map a object returned from DB to our java bean? After excuting SELECT I am getting list of objects and these objects cannot be mapped to my model class/java bean.

Is there any way to do that.
I want to execute native SQL update query in Hibernate.

Can anyone tell me how to user <sql-update> tag while calling SQL update query in Hibernate?

Is it possible to use this tag in Hibernate2.0 or not?

Your help is highly appreciated.
This iframe solution works fine to submit form in modal dialog window but I have another issue. If any can help, i'll appreciate.

I am submitting form from modal dialog window to export data in different file formats like excel, word, html etc.

It works fine for excel and word formats but not for html. When I select html format and submit form, correct response comes and browser opens one dialog box for user to ask "save", "open" and "cancel" export data. It works fine if user save the file as html but not able to open file as html.

I think this is because its a modal window not the normal browser window.

Can you please help me with this and if somebody knows some solution, please reply back.

Thanks
Deepika
15 years ago