I'm pretty new to hibernate. I've been trying to add some data to an existing table in mysql database using hibernate. But there is an error in my code. The session object is not being built. My code is as below:
The stack trace is as follows:
Can someone please help me. I've no idea why this is happening.
posted 5 years ago
Can you please refer this link where in ServiceLayer you can see how session is being created and later a commit.