hibernate: Unable to locate appropriate constructor on class - HQL

后端 未结 4 1593
清酒与你
清酒与你 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:47

    If you have made a selection (i.e. don't return all the columns of the table), make sure to have a constructor with the selected column(s) in your mapped class.

提交回复
热议问题