QueryDSL Generated classes not able to access second level elements for querying

后端 未结 1 1346
南笙
南笙 2021-02-20 02:16

I am using QueryDSL with Spring Data JPA in my Java Project and have Generated files using QueryDSL maven plugin to use the QueryDSL Model classes generated by it. This works gr

相关标签:
1条回答
  • 2021-02-20 02:59

    By default only the first level is initialized. See this documentation section for initialization options : http://www.querydsl.com/static/querydsl/3.6.0/reference/html/ch03s03.html#d0e2192

    Full deep initialization is not possible with final fields, because of the possibility of infinite loops, but Querydsl provides also the option of property accessor methods.

    0 讨论(0)
提交回复
热议问题