질문&답변
querydsl Embeddable 안에 Embeddable 조건안됨
QueryInit("*.*") 적용을 고려해보시길 바랍니다. https://querydsl.com/static/querydsl/2.1.2/apidocs/com/mysema/query/annotations/QueryInit.html By default Querydsl initializes only reference properties of the first two levels. In cases where longer initialization paths are required, these have to be annotated in the domain types via com.querydsl.core.annotations.QueryInit annotations. QueryInit is used on properties where deep initializations are needed. The following example demonstrates the usage. @Entity class Event { @QueryInit("customer.address") Account account; } @Entity class Account { Customer customer; } @Entity class Customer { String name; Address address; // ... } This example enforces the initialization of the account.customer path, when an Event path is initialized as a root path / variable. The path initialization format supports wildcards as well, e.g. "customer.*" or just "*" .
- 좋아요수
- 0
- 댓글수
- 2
- 조회수
- 517





