在jpa 2.1中,将
@Query(nativeQuery = true)注释放在存储库接口方法中,解决了此问题。参考:
https://github.com/spring-projects/spring-data-
examples/tree/master/jpa/jpa21#support-for-custom-sqlresultsetmapping-with-
constructorresult
欢迎分享,转载请注明来源:内存溢出
在jpa 2.1中,将
@Query(nativeQuery = true)注释放在存储库接口方法中,解决了此问题。参考:
https://github.com/spring-projects/spring-data-
examples/tree/master/jpa/jpa21#support-for-custom-sqlresultsetmapping-with-
constructorresult
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)