title: jpa Hibernate make schema name configurable in Entity class
body: <p>I was developing a simple Spring Boot application in which, jpa + Hibernate is user for accessing my data source, which is Oracle DB. The entity class is given below.</p>
  
  <pre><code>    @Entity
      @Table(name="MY_SCHEMA.MY_DB") 
      public class Member implements Serializable {
      .............
      }
  </code></pre>
  
  <p>Currently my project doesn't have any persistence.xml. The problem is, I need to make the schema name (MY_SCHEMA) inside @Table annotation configurable, that is getting the schema value from application.properties file on run time.</p>
  
  <p>I have tried by adding <code>spring.jpa.properties.hibernate.default_schema=schema</code> option in application.properties file. But all in vain.</p>
  
  <h2>Update</h2>
  
  <p>Have added more details in another question <a href="https://stackoverflow.com/questions/52031560/hibernate-how-to-make-schema-name-configurable-for-entity-class">Hibernate how to make schema name configurable for entity class</a></p>