사용자 도구

사이트 도구


java:jpa

차이

문서의 선택한 두 판 사이의 차이를 보여줍니다.

차이 보기로 링크

양쪽 이전 판 이전 판
다음 판
이전 판
java:jpa [2014/02/06 14:30]
kwon37xi
java:jpa [2023/01/05 17:00] (현재)
kwon37xi
줄 1: 줄 1:
 ====== JPA ====== ====== JPA ======
 +  * [[java:jpa:2.1|JPA 2.1]]
 +  * [[java:jpa:2.2|JPA 2.2]]
   * [[http://www.hibernate.org/|Hibernate]] JPA 2 구현체   * [[http://www.hibernate.org/|Hibernate]] JPA 2 구현체
   * [[http://batoo.jp/|Batoo JPA]] JPA 2 구현체. Hibernate보다 월등히 빠른 성능.   * [[http://batoo.jp/|Batoo JPA]] JPA 2 구현체. Hibernate보다 월등히 빠른 성능.
 +  * [[java:jpa:nativequery|JPA and Native Query (SQL)]]
   * [[java:jpa:schema_generation|JPA Schema Generation]]   * [[java:jpa:schema_generation|JPA Schema Generation]]
 +  * [[java:jpa:entitygraph|JPA @EntityGraph]]
   * [[gradle:jpa_metamodel_generation|Gradle에서 JPA2 MetaModel 생성]]   * [[gradle:jpa_metamodel_generation|Gradle에서 JPA2 MetaModel 생성]]
   * [[http://www.springsource.org/spring-data/jpa|Spring Data JPA]]   * [[http://www.springsource.org/spring-data/jpa|Spring Data JPA]]
   * [[http://easycriteria.uaihebert.com/|EasyCriteria]]   * [[http://easycriteria.uaihebert.com/|EasyCriteria]]
 +  * [[http://www.jpab.org/|JPA Performance Benchmark]]
 +  * [[http://www.baeldung.com/java-bootstrap-jpa|Bootstrapping JPA Programmatically in Java | Baeldung]]
 +  * [[database:sqlcommenter|sqlcommenter]]
 +  * [[java:jpa:jpastreamer|JPAStreamer]]
  
-===== 읽어볼 문서 =====+===== Gradle과 JPA ===== 
 +  * JPA(Hibernate)는 persistence.xml이 있는 클래스 디렉토리에서 Entity class들을 찾는데, gradle은 resources 와 java class를 서로 다른 디렉토리에 저장해서 엔티티를 자동으로 찾지 못하는 문제가 발생한다. 
 +  * 이때 ''persistence.xml''에 모든 클래스를 명시하거나 
 +  * 혹은 java class와 resources의 build 결과 디렉토리를 동일하게 맞추면 된다.<code> 
 +sourceSets.main.output.resourcesDir = sourceSets.main.output.classesDir
  
 +// 아래는 아마 불필요할 것임. persistence.xml은 main/resources에 두므로.
 +sourceSets.test.output.resourcesDir = sourceSets.test.output.classesDir
 +</code>
 +
 +===== 읽어볼 문서 =====
 +  * [[http://en.wikibooks.org/wiki/Java_Persistence|Wikibooks JPA]]
 +  * [[http://www.java2s.com/Tutorials/Java/JPA/index.htm|Java2s JPA Tutorial]]
 +  * [[http://www.java2s.com/Code/Java/JPA/CatalogJPA.htm|Java2s JPA Codes]]
   * [[http://blogs.sourceallies.com/2010/03/mysql-masterslave-configuration-with-ejb3-and-jpa/|MySql Master/Slave Configuration with JPA]]   * [[http://blogs.sourceallies.com/2010/03/mysql-masterslave-configuration-with-ejb3-and-jpa/|MySql Master/Slave Configuration with JPA]]
   * [[http://www.lordofthejars.com/2012/04/qui-dit-crise-te-dis-monde-dit-famine.html|hibernate sort tips]]   * [[http://www.lordofthejars.com/2012/04/qui-dit-crise-te-dis-monde-dit-famine.html|hibernate sort tips]]
줄 14: 줄 34:
   * [[http://borislam.blogspot.gr/2012/07/customizing-spring-data-jpa-repository.html|Programming Peacefully: Customizing Spring Data JPA Repository]]   * [[http://borislam.blogspot.gr/2012/07/customizing-spring-data-jpa-repository.html|Programming Peacefully: Customizing Spring Data JPA Repository]]
   * [[http://www.jroller.com/agirish/entry/jpa_using_case_and_when|JPA Using CASE and WHEN]]   * [[http://www.jroller.com/agirish/entry/jpa_using_case_and_when|JPA Using CASE and WHEN]]
 +  * [[http://www.javacodegeeks.com/2015/02/jpa-tutorial.html|JPA Ultimate guide]]
 +  * [[http://www.javacodegeeks.com/2015/11/jpa-in-case-of-asynchronous-processing.html|JPA in case of asynchronous processing]]
 +  * [[http://www.javacodegeeks.com/2016/02/jpa-pitfalls-mistakes.html|JPA Pitfalls / Mistakes]]
 +  * [[https://leanpub.com/high-performance-java-persistence|High-Performance Java… by Vlad Mihalcea [Leanpub PDF/iPad/Kindle]]]
java/jpa.1391664646.txt.gz · 마지막으로 수정됨: 2014/02/06 14:30 저자 kwon37xi