Hi,
Can any one please tell me what is the better approach for a updating a row using hibernate among the following.
1.
Quote:
Get the appropriate bean and update the bean using setter methods and save the bean using session.saveOrUpdate() mehtod.
2.
Quote:
Using DML update query and execute the query using query.executeUpdate() method.
I need to update only one record whenever the user tries to go for a particular item then I need to change the status of the column(Is_Active) to false.
Please tell me which is the better way to proceed.
Thanks,
Shiva