niki wrote:
hi iam using oracle data base..
i want to update a column....
do in need to use session.saveorupdate("..")
or session.createquery("...")
You can do it either ways.,
if you have a domain object, hibernate will try to save all properties into the database (You might need a fetch and populate from your dto for getting updated values), meaning it will try to update a lot of columsn..
if your dto is carrying only changed values, or there are audit trails or triggers associated with changes, you might want to use query object!!!
:)