문서의 선택한 두 판 사이의 차이를 보여줍니다.
| 양쪽 이전 판 이전 판 다음 판 | 이전 판 | ||
|
java:jpa [2014/02/06 14:25] kwon37xi |
java:jpa [2023/01/05 17:00] (현재) kwon37xi |
||
|---|---|---|---|
| 줄 1: | 줄 1: | ||
| ====== JPA ====== | ====== JPA ====== | ||
| + | * [[java: | ||
| + | * [[java: | ||
| * [[http:// | * [[http:// | ||
| * [[http:// | * [[http:// | ||
| + | * [[java: | ||
| * [[java: | * [[java: | ||
| + | * [[java: | ||
| * [[gradle: | * [[gradle: | ||
| * [[http:// | * [[http:// | ||
| * [[http:// | * [[http:// | ||
| + | * [[http:// | ||
| + | * [[http:// | ||
| + | * [[database: | ||
| + | * [[java: | ||
| - | ===== sql comments 자동 생성 | + | ===== Gradle과 JPA ===== |
| - | < | + | * JPA(Hibernate)는 persistence.xml이 있는 클래스 디렉토리에서 Entity class들을 찾는데, gradle은 resources 와 java class를 서로 다른 디렉토리에 저장해서 엔티티를 자동으로 찾지 못하는 문제가 발생한다. |
| - | < | + | * 이때 '' |
| - | </code> | + | * 혹은 java class와 resources의 build 결과 디렉토리를 동일하게 맞추면 된다.< |
| + | sourceSets.main.output.resourcesDir = sourceSets.main.output.classesDir | ||
| - | ===== Query Hint ===== | + | // 아래는 아마 불필요할 것임. persistence.xml은 main/resources에 두므로. |
| - | * [[http://docs.jboss.org/hibernate/ | + | sourceSets.test.output.resourcesDir = sourceSets.test.output.classesDir |
| - | * '' | + | |
| - | * '' | + | |
| - | * '' | + | |
| - | * '' | + | |
| - | * '' | + | |
| - | * '' | + | |
| - | * '' | + | |
| - | * '' | + | |
| - | * '' | + | |
| - | * '' | + | |
| </ | </ | ||
| - | |||
| ===== 읽어볼 문서 ===== | ===== 읽어볼 문서 ===== | ||
| + | * [[http:// | ||
| + | * [[http:// | ||
| + | * [[http:// | ||
| * [[http:// | * [[http:// | ||
| * [[http:// | * [[http:// | ||
| 줄 34: | 줄 34: | ||
| * [[http:// | * [[http:// | ||
| * [[http:// | * [[http:// | ||
| + | * [[http:// | ||
| + | * [[http:// | ||
| + | * [[http:// | ||
| + | * [[https:// | ||