org.hibernate.HibernateException: Unable to instantiate default tuplizer [org.hibernate.tuple.entity.PojoEntityTuplizer]

后端 未结 2 1486
醉话见心
醉话见心 2021-01-13 11:50

I am developing a web application using Hibernate framework. I got this error when trying to run webapp.

Error Console:



        
相关标签:
2条回答
  • 2021-01-13 12:36

    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

    0 讨论(0)
  • 2021-01-13 12:39

    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.

    0 讨论(0)
提交回复
热议问题