====== JPA ====== * [[java:jpa:2.1|JPA 2.1]] * [[java:jpa:2.2|JPA 2.2]] * [[http://www.hibernate.org/|Hibernate]] JPA 2 구현체 * [[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:entitygraph|JPA @EntityGraph]] * [[gradle:jpa_metamodel_generation|Gradle에서 JPA2 MetaModel 생성]] * [[http://www.springsource.org/spring-data/jpa|Spring Data JPA]] * [[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 결과 디렉토리를 동일하게 맞추면 된다. sourceSets.main.output.resourcesDir = sourceSets.main.output.classesDir // 아래는 아마 불필요할 것임. persistence.xml은 main/resources에 두므로. sourceSets.test.output.resourcesDir = sourceSets.test.output.classesDir ===== 읽어볼 문서 ===== * [[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://www.lordofthejars.com/2012/04/qui-dit-crise-te-dis-monde-dit-famine.html|hibernate sort tips]] * [[http://borislam.blogspot.hk/2012/07/adding-hibernate-entity-level-filter.html|Programming Peacefully: Adding Hibernate Entity Level Filtering feature to 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.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]]]