Reputation: 11
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
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