老师我用spring-data-jpa,我遇到一个复杂的SQL,比如说有join的查询,我返回的对象必须是@entity标记这个实体吗?
@Query(nativeQuery = true, value = "select * from refund r where r.order_no = ?1 AND r.refund_status between 1 and 2 ") List<Refund> findByOrderNo(String orderNo);
@Query(nativeQuery = true, value = "select * from refund r where r.order_no = ?1 AND r.refund_status between 1 and 2 ") List<Refund> findByOrderNo(String orderNo);
2019-05-27
举报