Spring JPA native query with Projection gives “ConverterNotFoundException”

后端 未结 5 879
遇见更好的自我
遇见更好的自我 2020-12-10 11:22

I\'m using Spring JPA and I need to have a native query. With that query, I need to get only two fields from the table, so I\'m trying to use Projections. It isn\'t working

5条回答
  •  眼角桃花
    2020-12-10 12:09

    JPA 2.1 introduces an interesting ConstructorResult feature if you want to keep it native.

提交回复
热议问题