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

node.js - StackOverflow API not returning JSON -

php - Laravel 4.1 to Heroku: SQLSTATE[HY000] [2002] No such file or directory -

visual studio - How to generate shader debug information (pdb) in VS2012 -