Temporarily rolls back from Hibernate's latest version
This commit is contained in:
parent
0f1bad8115
commit
840943d7fc
|
@ -35,7 +35,7 @@
|
||||||
<org.apache.tomcat.tomcat-jdbc.version>7.0.35</org.apache.tomcat.tomcat-jdbc.version>
|
<org.apache.tomcat.tomcat-jdbc.version>7.0.35</org.apache.tomcat.tomcat-jdbc.version>
|
||||||
<com.fasterxml.jackson>2.8.4</com.fasterxml.jackson>
|
<com.fasterxml.jackson>2.8.4</com.fasterxml.jackson>
|
||||||
|
|
||||||
<hibernate.version>5.4.2.Final</hibernate.version>
|
<hibernate.version>5.2.11.Final</hibernate.version>
|
||||||
|
|
||||||
<commons-codec.version>1.9</commons-codec.version>
|
<commons-codec.version>1.9</commons-codec.version>
|
||||||
<org.junit.version>4.11</org.junit.version>
|
<org.junit.version>4.11</org.junit.version>
|
||||||
|
|
|
@ -255,6 +255,7 @@ public class QueryableHibernateList<T extends DataEntity> implements QueryableLi
|
||||||
else return this.toListAsyncWithOutFields();
|
else return this.toListAsyncWithOutFields();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Async
|
||||||
private CompletableFuture<List<T>> toListAsyncWithFields() {
|
private CompletableFuture<List<T>> toListAsyncWithFields() {
|
||||||
List<Tuple> results = this.manager.createQuery(query).getResultList();
|
List<Tuple> results = this.manager.createQuery(query).getResultList();
|
||||||
Map<Object, List<Tuple>> groupedResults = results.stream()
|
Map<Object, List<Tuple>> groupedResults = results.stream()
|
||||||
|
@ -269,6 +270,7 @@ public class QueryableHibernateList<T extends DataEntity> implements QueryableLi
|
||||||
}).collect(Collectors.toList()));
|
}).collect(Collectors.toList()));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Async
|
||||||
private CompletableFuture<List<T>> toListAsyncWithOutFields() {
|
private CompletableFuture<List<T>> toListAsyncWithOutFields() {
|
||||||
TypedQuery<T> typedQuery = this.manager.createQuery(this.query);
|
TypedQuery<T> typedQuery = this.manager.createQuery(this.query);
|
||||||
if (this.offset != null) typedQuery.setFirstResult(this.offset);
|
if (this.offset != null) typedQuery.setFirstResult(this.offset);
|
||||||
|
|
Loading…
Reference in New Issue