Skip to content

Commit

Permalink
ISPN-3953 JPACacheStore should not load all entities in memory
Browse files Browse the repository at this point in the history
* using Hibernate's Criteria.scroll()
* MySQL needs to setFetchSize(Integer.MIN_VALUE) to use streaming (JpaStore detects this based on Hibernate's dialect)
* Hibernate dependencies changed from provided to compile as we now really depend on Hibernate, not any JPA implementation
  • Loading branch information
rvansa authored and galderz committed Apr 4, 2014
1 parent d490d99 commit 57af2cc
Show file tree
Hide file tree
Showing 3 changed files with 325 additions and 159 deletions.
5 changes: 5 additions & 0 deletions parent/pom.xml
Expand Up @@ -474,6 +474,11 @@
<artifactId>hibernate-annotations</artifactId>
<version>${version.hibernate.annotations}</version>
</dependency>
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-core</artifactId>
<version>${version.hibernate.core}</version>
</dependency>
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-entitymanager</artifactId>
Expand Down
5 changes: 5 additions & 0 deletions persistence/jpa/pom.xml
Expand Up @@ -34,6 +34,11 @@
</plugins>
</build>
<dependencies>
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-core</artifactId>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.hibernate.javax.persistence</groupId>
<artifactId>hibernate-jpa-2.0-api</artifactId>
Expand Down

0 comments on commit 57af2cc

Please sign in to comment.