且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

为什么查询 dsl 实体路径限制为四个级别?

更新时间:2023-01-19 21:46:27

是的,这是 Querydsl 的限制.由于正常路径初始化使用最终字段,因此需要使用限制.幸运的是,可以通过多种方式自定义路径初始化 http://www.querydsl.com/static/querydsl/3.5.0/reference/html/ch03s03.html#d0e2181

Yes, this is a limitation of Querydsl. Since the normal path initialization uses final fields a limit needs to be used. Luckily path initialization can be customized in many ways http://www.querydsl.com/static/querydsl/3.5.0/reference/html/ch03s03.html#d0e2181