Hi,
We are using hibernate 3.0.
We are using session.saveOrUpdate to insert a new value into the database & to update the existing entry.
So, if the searched value which is to be updated is unavailable that value will be inserted into the table.
But if we don't want to insert a new record & we want only a pure update, then we are using HQL queries. (HQL update queries).
Is it possible to update the record only & not to give a new entry if the searched value is not found using session.update? Else, here also new row will be inserted or not? Any disadvantages over session.update?
I want to know the advantages & disadvantages of session.update before using it.
Thanks in advance,
Kuzhali
_________________ Kuzhali
|