Commit 3cb046a3 authored by Matija Obreza's avatar Matija Obreza

Upgraded spring-data-jpa to 1.4.4

parent bd16738e
......@@ -58,8 +58,6 @@
<spring.framework.version>3.2.7.RELEASE</spring.framework.version>
<spring.security.version>3.2.1.RELEASE</spring.security.version>
<spring.security.oauth2.version>1.0.5.RELEASE</spring.security.oauth2.version>
<spring.data.core.version>1.5.1.RELEASE</spring.data.core.version>
<spring.data.jpa.version>1.3.5.RELEASE</spring.data.jpa.version>
<org.springframework.social-version>1.0.3.RELEASE</org.springframework.social-version>
<org.springframework.social-google-version>1.0.0.M3</org.springframework.social-google-version>
......@@ -263,12 +261,6 @@
</dependency>
<dependency>
<groupId>org.springframework.data</groupId>
<artifactId>spring-data-jpa</artifactId>
<version>${spring.data.jpa.version}</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-test</artifactId>
......@@ -359,6 +351,7 @@
<groupId>org.hsqldb</groupId>
<artifactId>hsqldb</artifactId>
<version>${hsqldb.version}</version>
<scope>test</scope>
</dependency>
<dependency>
......@@ -499,6 +492,11 @@
<artifactId>org.bioversityinternational.ontology</artifactId>
<version>0.6.2</version>
</dependency>
<dependency>
<groupId>org.springframework.data</groupId>
<artifactId>spring-data-jpa</artifactId>
<version>1.4.4.RELEASE</version>
</dependency>
</dependencies>
<build>
......
......@@ -20,6 +20,8 @@ import java.util.Iterator;
import java.util.List;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageRequest;
import org.springframework.data.domain.Pageable;
import org.springframework.data.domain.Sort;
public class LucenePage<T> implements Page<T> {
......@@ -106,4 +108,14 @@ public class LucenePage<T> implements Page<T> {
public void setContent(List<T> data) {
content = data;
}
@Override
public Pageable nextPageable() {
return new PageRequest(number+1, size, getSort());
}
@Override
public Pageable previousPageable() {
return new PageRequest(number-1, size, getSort());
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment