jQuery in Action, 2nd edition
The moose likes Object Relational Mapping and the fly likes Issue with Hibernate Update Basi Query Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Databases » Object Relational Mapping
Reply Bookmark "Issue with Hibernate Update Basi Query " Watch "Issue with Hibernate Update Basi Query " New topic
Author

Issue with Hibernate Update Basi Query

Steve James
Ranch Hand

Joined: Apr 12, 2009
Posts: 44
Hi. I'm new in Hibernate so I have a little obstacles about understanding. Trying to update Object using HQL .








This is what i am doing ,

query.setString("newName", "Johnny"); // Here it should be newName or name ?

Please tell your suggestions .


I am just a brick in the wall of Java
Ankit Garg
Saloon Keeper

Joined: Aug 03, 2008
Posts: 9189
    
    2

Well as far as I know, you'll have to use newName and not name...


SCJP 6 | SCWCD 5 | Javaranch SCJP FAQ | SCWCD Links
Steve James
Ranch Hand

Joined: Apr 12, 2009
Posts: 44
Thanks Ankit , i want to try it but it gives me permgenspace , and i don't know how to fix this in Netbeans , so posted this question.

Anyways thanks , i will try it in eclipse.
 
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: Issue with Hibernate Update Basi Query
 
Similar Threads
Hibernate - Spring integration problem
Hibernate Query Language where clause
What causes Hiberante to issue a SQL update command
Deleting Record in a Web Application.
Batch processing