hibernate: Unable to locate appropriate constructor on class - HQL

后端 未结 4 1584
清酒与你
清酒与你 2021-01-11 11:13

When I trying to execute this HQL to return an object Ponto I receive this error:

ERROR [org.hibernate.hql.PARSER] (http-localhost-127.0.

4条回答
  •  野趣味
    野趣味 (楼主)
    2021-01-11 11:55

    Check these things:

    1- If you make a constructor with parameters; you should provide the constructor with no parameters, explicity;

    2- Make sure your ID entity is int/Integer;

    3- Make your Entity java.io.Serializable by implementing;

    4- Make your parameter-less (default) constructor public or default access modifier;

提交回复
热议问题