File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Badass: Making Users Awesome
this week in the
Object Relational Mapping
need help in updating data using hibernate hql
Joined: Mar 28, 2006
Apr 25, 2009 12:47:18
I have a table let us say userdetails with fields companyid,employeeid,password,empname etc
companyid,employeeid are composite keys
and employeeid can be editable
i have created the required hibernate pojo class fro this table...
how to write update query for updating employeeid in the database?
for example ,
update userdetails set employeeid='new_value' where companyid='some_company' and employeeid='old_value'
i can do this by using SQLQuery object.....
how can i do this using hql?
I agree. Here's the link:
subject: need help in updating data using hibernate hql
css,images,fonts gets dissappeared after submitting the form.
How to update multiple columns in Hibernate(using HQL query)?
Hibernate POJO class grtter method
fetch data from two different schema
Copy field in the same table
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015