I am new to Hibernate and facing very basic problem and not able to found what's issue in the code ......
I am updating an Employee data using the hibernateTemplate.saveOrupdate method ....but when i m calling get or load method its failing saying no row found ..
I am pasting my Code below ..
1. You said, you are saving the data, Did you check if it is getting saved successfully or requires you to commit the transaction?
2. Did you actually run a query across the database and check if there are any rows with id "123"?
If you are not laughing at yourself, then you just didn't get the joke.
Yogesh Kumar Yadav
posted 9 years ago
Thanks for your reply ...
Yes I did check the database after the save ..I can see the data......However when i m running the code after commenting the saveOrUPdate , just to fetch the
values ...I am getting no rows and same is applicable when i m looking into the database ...
I know the problem is because of commit ...but where I need to put the commit info ??