Tried for 3 hours can't find a answer , posting it
After running the program printing Inserting Record and Done inserting values , but couldn't find values in db . Any help what to check and where to check ?
Pojo class :
// Generated Apr 18, 2009 10:56:39 AM by Hibernate Tools 3.2.1.GA
I am just a brick in the wall of Java
posted 6 years ago
I'm not an Hibernate expert, but there is one very important thing that I think your code is missing:
you're neither beginning, closing a Transaction nor committing your insert. Therefore Hibernate keeps the object you created in its object cache.
Try something like this:
except that you should obviously do your object creating instead of doing a select in lines 6-11