We use a HibernateCursorInputSource. How should we implement a more dynamic queryString?
Should we subclass the HibernateCursorInputSource and override the queryString?
Geir
Code:<!-- input source --> <bean id="hibernateSubscriptionRollbackJobInputSource" class="org.springframework.batch.io.cursor.HibernateCursorInputSource" lazy-init="true"> <property name="sessionFactory" ref="sessionFactoryCoreAb"/> <!-- INFO: eventCodeId = 3 is EventCode.DEACTIVATE id --> <property name="queryString" value="from EventBean where eventDate <= CURRENT_DATE and timeProcessed is null and eventCodeId = 3"/> </bean>


Reply With Quote