vamshi krishna
vamshi krishna

Reputation: 11

Hibernate session.save with Update query

i have a session.save() which performs the insert operations. and there is a condition that gives the number of rows updated if !=null. now i wanted to know how can i know whether the session.save() is successful or not?

thanks in advance

Upvotes: 1

Views: 952

Answers (1)

Aravind Yarram
Aravind Yarram

Reputation: 80176

If you are using transactions and the save() didn't throw any exception, it returns the generated identifier indicating a success.

Upvotes: 1

Related Questions