title: How to set up default schema name in JPA configuration?
body: <p>I found that in hibernate config file we could set up parameter <code>hibernate.default_schema</code>:</p>
  
  <pre><code>&lt;hibernate-configuration&gt; 
     &lt;session-factory&gt;
        ...
        &lt;property name="hibernate.default_schema"&gt;myschema&lt;/property&gt;
        ...
     &lt;/session-factory&gt;
  &lt;/hibernate-configuration&gt;
  </code></pre>
  
  <p>Now I'm using JPA and I want to do the same. Otherwise I have to add parameter <code>schema</code> to each @Table annotation like:</p>
  
  <pre><code>@Entity
  @Table (name = "projectcategory", schema = "SCHEMANAME")
  public class Category implements Serializable { ... }
  </code></pre>
  
  <p>As I understand this parameter should be somewhere in this part of configuration:</p>
  
  <pre><code>&lt;bean id="domainEntityManagerFactory" class="org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean"&gt;
      &lt;property name="persistenceUnitName" value="JiraManager"/&gt;
      &lt;property name="dataSource" ref="domainDataSource"/&gt;
      &lt;property name="jpaVendorAdapter"&gt;
          &lt;bean class="org.springframework.orm.jpa.vendor.HibernateJpaVendorAdapter"&gt;
              &lt;property name="generateDdl" value="false"/&gt;
              &lt;property name="showSql" value="false"/&gt;
              &lt;property name="databasePlatform" value="${hibernate.dialect}"/&gt;
          &lt;/bean&gt;
      &lt;/property&gt;
  &lt;/bean&gt;
  
  &lt;bean id="domainDataSource" class="com.mchange.v2.c3p0.ComboPooledDataSource" destroy-method="close"&gt;
      &lt;property name="driverClass" value="${db.driver}" /&gt;
      &lt;property name="jdbcUrl" value="${datasource.url}" /&gt;
      &lt;property name="user" value="${datasource.username}" /&gt;
      &lt;property name="password" value="${datasource.password}" /&gt;
      &lt;property name="initialPoolSize" value="5"/&gt;
      &lt;property name="minPoolSize" value="5"/&gt;
      &lt;property name="maxPoolSize" value="15"/&gt;
      &lt;property name="checkoutTimeout" value="10000"/&gt;
      &lt;property name="maxStatements" value="150"/&gt;
      &lt;property name="testConnectionOnCheckin" value="true"/&gt;
      &lt;property name="idleConnectionTestPeriod" value="50"/&gt;
  &lt;/bean&gt;
  </code></pre>
  
  <p>... but I can't find its name in google. Any ideas?</p>