Native SQL query for an Hibernate entity using @Formula results in NullPointerException

前端 未结 3 2096
忘掉有多难
忘掉有多难 2020-12-11 15:58

I\'ve got an simple Hibernate entity for which I use the @Formula annotion:

    @Id
private Long id;

private String name;

@Formula(\"(select count(f.*) fro         


        
3条回答
  •  一个人的身影
    2020-12-11 16:16

    Simply way , don't use createNativeQuery , just use createQuery .. or make a transiant with getter convat

提交回复
热议问题