I am not very sure, but I think Hibernate cannot be called from Spring MVC
I do not really know whether Hibernate can be called from Spring MVC.
Thanks but I could not understand this in your reply.
I thought any code can call any other code. I have successfully run Spring MVC with hibernate as shown below in the email but what I have done are the below 3 steps:
Step 1
Write Spring MVC code.
Step 2
Write Hibernate code.
Step 3
Call Hibernate code from the Spring code.
I called the below code from the Spring MVC and it worked fine:
But I fail to understand that if I can run the code successfully like above then why is Spring Hibernate integration needed?