문서의 선택한 두 판 사이의 차이를 보여줍니다.
양쪽 이전 판 이전 판 다음 판 | 이전 판 다음 판 양쪽 다음 판 | ||
java:querydsl [2015/01/16 18:43] kwon37xi [복잡한 쿼리] |
java:querydsl [2019/02/07 11:21] kwon37xi |
||
---|---|---|---|
줄 1: | 줄 1: | ||
====== QueryDSL ====== | ====== QueryDSL ====== | ||
* http:// | * http:// | ||
+ | * [[java: | ||
+ | * [[java: | ||
* [[http:// | * [[http:// | ||
* Querydsl is a framework which enables the construction of type-safe SQL-like queries for multiple backends including JPA, JDO and SQL in Java. | * Querydsl is a framework which enables the construction of type-safe SQL-like queries for multiple backends including JPA, JDO and SQL in Java. | ||
+ | |||
+ | ===== Q-Types multi thread loading 시 dead lock ===== | ||
+ | * [[http:// | ||
+ | <code java> | ||
+ | // 미리 초기화를 호출하는게 좋다. packageToLoad 를 변경해준다. | ||
+ | ClassPathUtils.scanPackage(Thread.currentThread().getContextClassLoader(), | ||
+ | </ | ||
+ | ===== join 성능 향상 ===== | ||
+ | * Join 시 그 결과로 나오는 관계 객체를 Eager Loading 하려면 '' | ||
+ | |||
+ | <code java> | ||
+ | from(parent).innerJoin(parent.child).fetch() | ||
+ | .... | ||
+ | </ | ||
===== JPA QueryDSL Cross Join 발생 ===== | ===== JPA QueryDSL Cross Join 발생 ===== | ||
줄 63: | 줄 79: | ||
} | } | ||
</ | </ | ||
+ | |||
+ | ===== Case/When ===== | ||
+ | * [[https:// | ||
+ | * '' | ||
===== @Embeddable의 필드 소스 생성 ===== | ===== @Embeddable의 필드 소스 생성 ===== | ||
* Embeddable안에 또 다른 Embeddable이 있을 경우, 더 자식쪽 Embeddable의 경우 명시적 컬럼 매핑('' | * Embeddable안에 또 다른 Embeddable이 있을 경우, 더 자식쪽 Embeddable의 경우 명시적 컬럼 매핑('' | ||
* 버그로 보인다. | * 버그로 보인다. | ||
+ | |||
+ | ==== Metamodel 생성 ==== | ||
+ | * [[gradle: | ||
+ | * [[gradle: | ||
+ | * Java 7에서 '' | ||
+ | Caused by: java.lang.NullPointerException | ||
+ | at com.mysema.query.codegen.SimpleSerializerConfig.getConfig(SimpleSerializerConfig.java: | ||
+ | at com.mysema.query.apt.DefaultConfiguration.< | ||
+ | at com.mysema.query.apt.jpa.JPAConfiguration.< | ||
+ | ... | ||
+ | </ | ||
줄 74: | 줄 105: | ||
* [[http:// | * [[http:// | ||
* [[http:// | * [[http:// | ||
+ | * [[https:// |