PreparedStatement in ItemPreparedStatementSetter which lets db-engine to auto-generate IDs
<p>Is there a way to have <code>PreparedStatement</code> in <code>ItemPreparedStatementSetter</code> from Spring Batch configured in a way it will let db engine generate IDs on the fly?</p>

<p>Typically, you would set it up while creating statement from <code>java.sql.Connection</code>:</p>

<pre><code>PreparedStatement ps = con.prepareStatement(sql, new String[]{"ID"})
</code></pre>

<p>I'd like to avoid exceptions:</p>

<pre><code>Caused by: java.sql.SQLIntegrityConstraintViolationException: 
ORA-01400: 
cannot insert NULL into ("SCHEMA"."TABLE"."ID")
</code></pre>