Revision 82006e78
Added by Andreas Kohlbecker over 5 years ago
src/main/java/eu/etaxonomy/cdm/service/CdmFilterablePagingProvider.java | ||
---|---|---|
130 | 130 |
|
131 | 131 |
Integer pageIndex = firstRow / pageSize; |
132 | 132 |
Pager<V> page; |
133 |
clearSession(); // clear the session from remains of previous service calls |
|
133 |
clearSession(); // clear the session from remains of previous service calls, see issue #7559
|
|
134 | 134 |
if(!restrictions.isEmpty()){ |
135 | 135 |
List<Restriction<?>> preparedRestrictions = prepareRestrictions(filter, matchMode); |
136 | 136 |
page = service.findByTitleWithRestrictions( |
... | ... | |
175 | 175 |
|
176 | 176 |
Pager<V> page; |
177 | 177 |
|
178 |
clearSession(); // clear the session from remains of previous service calls |
|
178 |
clearSession(); // clear the session from remains of previous service calls, see issue #7559
|
|
179 | 179 |
if(!restrictions.isEmpty()){ |
180 | 180 |
// Logger.getLogger("org.hibernate.SQL").setLevel(Level.TRACE); |
181 | 181 |
List<Restriction<?>> preparedRestrictions = prepareRestrictions(filter, matchMode); |
... | ... | |
210 | 210 |
} |
211 | 211 |
|
212 | 212 |
/** |
213 |
* |
|
213 |
* see issue #7559
|
|
214 | 214 |
*/ |
215 | 215 |
public void clearSession() { |
216 | 216 |
Session session = service.getSession(); |
Also available in: Unified diff
ref #7559 referencing issue in comments