title: What are the possible values of spring.datasource.initialization-mode?
body: <p>I am configuring a database in Spring JPA and I want to know what the possible values are of <code>spring.datasource.initialization-mode</code>. I found <a href="https://docs.spring.io/spring-boot/docs/current/reference/html/common-application-properties.html" rel="noreferrer">this page</a> with common properties but it doesn't give all possible values. I'd expect there to be some documentation on all possible values of all properties you can set.</p>
  <p>I am using the property in the props section in my <code>applicationContext.xml</code> as properties for the <code>entityManagerFactory</code></p>
  <pre><code>&lt;util:properties id=&quot;props&quot;&gt;
      &lt;prop key=&quot;hibernate.show_sql&quot;&gt;true&lt;/prop&gt;
      &lt;prop key=&quot;hibernate.dialect&quot;&gt;org.hibernate.dialect.PostgreSQL82Dialect&lt;/prop&gt;
      &lt;prop key=&quot;hibernate.hbm2ddl.auto&quot;&gt;create&lt;/prop&gt;
      &lt;prop key=&quot;hibernate.ddl-auto&quot;&gt;create&lt;/prop&gt;
      &lt;prop key=&quot;spring.jpa.show-sql&quot;&gt;true&lt;/prop&gt;
      &lt;prop key=&quot;spring.jpa.generate.ddl&quot;&gt;true&lt;/prop&gt;
      &lt;prop key=&quot;spring.jpa.hibernate.ddl-auto&quot;&gt;create&lt;/prop&gt;
      &lt;prop key=&quot;spring.datasource.initialization-mode&quot;&gt;always&lt;/prop&gt;
      &lt;prop key=&quot;spring.jpa.properties.hibernate.jdbc.lob.non_contextual_creation&quot;&gt;true&lt;/prop&gt;
  &lt;/util:properties&gt;
  </code></pre>