spring batch - HibernateCursorItemReader with Hibernate Detached criteria -


how use hibernate detached criteria "hibernatecursoritemreader" of spring batch?

a solution following:

  1. create custom hibernatedetachedcriteriaitemreader<> extends abstractitemcountingitemstreamitemreader<>
  2. add property criteria criteria , inject before use
  3. rewrite do*() functions manage resultset lifecycle

or extends hibernatecursoritemreader , override doopen() let working in dual-mode (normal,with detached criteria)


Comments

Popular posts from this blog

python - Subclassed QStyledItemDelegate ignores Stylesheet -

java - HttpClient 3.1 Connection pooling vs HttpClient 4.3.2 -

SQL: Divide the sum of values in one table with the count of rows in another -