title: Committing to database during process phase in spring batch job
body: <p>I have a conventional spring-batch job where I read from database, process domain objects and write it out to a file.</p>
  
  <p>I need to slightly tweak the functionality during the processor phase so that I can update and commit the domain object to the database and the write it out to a file.  I would need the commit to happen instantly as I would require the database ID for the write phase.</p>
  
  <p>When I tried updating the domain object and saving it, I noticed that the entity was getting committed after the write phase.</p>
  
  <p>Is there any way to force the commit to happen instantly during the processor phase and continue as before?</p>