wenhao / jpa-spec

A JPA Query By Specification framework.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

试用join 多表联查时出现 page 1 of 0 cantaining unknown instances

adzchao opened this issue · comments

image
image
image

这是我试用jion 方法多表联查的时候 出现的一个问题 请问这个有遇到过么

我先看看

麻烦把生成的SQL打印出来看看

spring.jpa.show-sql = true
spring.jpa.properties.hibernate.format_sql = true

image
select goods0_.id as id1_2_, goods0_.flag as flag2_2_, goods0_.goods_name as goods_na3_2_, goods0_.goods_type_id as goods_ty5_2_, goods0_.num as num4_2_ from goods goods0_ left outer join goods_type goodstype1_ on goods0_.goods_type_id=goodstype1_.id where goodstype1_.goods_type_name=? order by goods0_.id asc limit ?