You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
about MyBatisPagingItemReader ibatis ExecutorType #771
use MyBatisPagingItemReader is set default ExecutorType ExecutorType.BATCH
code is
protected void doReadPage() {
if (this.sqlSessionTemplate == null) {
this.sqlSessionTemplate = new SqlSessionTemplate(this.sqlSessionFactory, ExecutorType.BATCH);
}
Map<String, Object> parameters = new HashMap();
if (this.parameterValues != null) {
parameters.putAll(this.parameterValues);
}
parameters.put("_page", this.getPage());
parameters.put("_pagesize", this.getPageSize());
parameters.put("_skiprows", this.getPage() * this.getPageSize());
if (this.results == null) {
this.results = new CopyOnWriteArrayList();
} else {
this.results.clear();
}
this.results.addAll(this.sqlSessionTemplate.selectList(this.queryId, parameters));
}
if writer is use another ExecutorType have some erro
the stack is org.springframework.dao.TransientDataAccessResourceException: Cannot change the ExecutorType when there is an existing transaction
Activity
jackyyyyyssss commentedon Aug 11, 2023
i try to commit pr for this @kazuki43zoo