I am developing a web application using Hibernate framework. I got this error when trying to run webapp.
Error Console:
You should explicitly define no-arg constructor. This is a requirement from Hibernate to all POJOs.
Detailed explanation could be found here: https://stackoverflow.com/a/2971717/283426
that is right you need to have a constructor with no argument so it enables to initiate an object with the controller and as well as service class or anyway you are using that object.