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 -

python - Subclassed QStyledItemDelegate ignores Stylesheet -

sql server - TFS 2012 TF255062 Error after removing 'Active Directory' Role -