title: In Spring Batch 3.0.x - How to set database type for Non-standard Database?
body: <p>Using the previous xml format, it can be achieved by following ways:-
  (1)</p>
  
  <pre><code>&lt;value&gt;classpath:batch-mysql.properties&lt;/value&gt;
  </code></pre>
  
  <p>(2)</p>
  
  <pre><code>&lt;bean id="jobRepository" class="org...JobRepositoryFactoryBean"&gt;
  &lt;property name="databaseType" value="mysql"/&gt;
  &lt;property name="dataSource" ref="dataSource"/&gt;
  </code></pre>
  
  <p></p>
  
  <p>[Reference: <a href="http://docs.spring.io/spring-batch/reference/html/configureJob.html]" rel="nofollow">http://docs.spring.io/spring-batch/reference/html/configureJob.html]</a></p>
  
  <p>I was able to work with database using spring batch previous format xml. But I am stuck with the new format annotation. It is by default always using the embedded hsql.</p>
  
  <p>But with the new format (using annotations only) how to set the database type?</p>
  
  <p>There is not much information in the API document regarding this.</p>
  
  <p>Could someone help me on this? Thanks.</p>