title: Hibernate default schema and Table annotation
body: <p>I am using <code>Spring Boot 1.3.5</code> and <code>Hibernate 5.1</code>. Property that tells Hibernate what the schema to work with is called is</p>
  
  <pre><code>spring.jpa.properties.hibernate.default_schema
  </code></pre>
  
  <p>The value (schema name, lets say <em>development</em>), however, Somehow it does not get picked-up when creating tables with <code>spring.jpa.hibernate.ddl-auto</code>. Only way to get it work (at least what works for my case) is that each entity class has schema name defined with</p>
  
  <pre><code> @Table(name = "some_table", schema = "development")
  </code></pre>
  
  <hr>
  
  <p>It would be great if tables could be created in the schema defined in <strong>spring boot application properties</strong> (possibility to be passed as ENV for different environments). If schema is not specified in <code>@Table</code> annotation the table is created in public schema.</p>
  
  <p>Is there a way to set schema for tables without setting it in the Table annotation but with property file config only?</p>