File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Object Relational Mapping and the fly likes Problem with Update Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Databases » Object Relational Mapping
Reply Bookmark "Problem with Update" Watch "Problem with Update" New topic
Author

Problem with Update

Vrushali Gore
Ranch Hand

Joined: Oct 17, 2005
Posts: 40
I m updating bulk number of rows with Hibernate. Thats why I first tried using createSQLQuery() method for Native SQL update. But then it says that Update is supported via HQL only.

So i tried that also where I used createQuery method to go for HQL bulk update operation. Then getting ERROR as document not mapped. Can anybody please help me in sorting out this issue.
(Using postgres db)


Thanks in advance
Edvins Reisons
Ranch Hand

Joined: Dec 11, 2006
Posts: 364
Bulk updates are described in Section 13.4 of the Hibernate Reference. Please post your code and mappings if you need further help.
Saathvik Reddy
Ranch Hand

Joined: Jun 03, 2005
Posts: 228
Posting the exception stack trace would be more helpful.
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Problem with Update
 
Similar Threads
Is there a necessity in writing SQL queries in xml file
How to update multiple columns in Hibernate(using HQL query)?
hibernate multiple records update in a single statement
update problem
Hibernate - update specific field with unique id