title: Hibernate doesn't include schema into query
body: <p>According to configuration, Hibernate DAO repository should send query like this:</p>
  
  <pre><code>INSERT INTO some_schema.some_table (...) VALUES (...)
  </code></pre>
  
  <p>Instead, Hibernate sends this:</p>
  
  <pre><code>INSERT INTO some_table (...) VALUES (...)
  </code></pre>
  
  <p>It omits schema prefix. Without that prefix I am getting ORA-00942, table does not exist Oracle database error. How to force Hibernate send schema prefix? </p>
  
  <p><strong>P.S.</strong> This question is similar to <a href="https://stackoverflow.com/questions/2737420/how-to-set-up-default-schema-name-in-jpa-configuration">this question</a>, but adding default schema doesn't work for me, because I am using more of them.</p>
  
  <p>Configuration of entity is like this:</p>
  
  <pre><code>&lt;hibernate-mapping&gt;
  &lt;class name="com.somepackage.SomeClass" table="some_table" schema="some_schema"&gt;
    &lt;id name="someID" type="int" column="SOME_TABLE_ID"&gt;
       &lt;generator class="increment"/&gt;
    &lt;/id&gt;
    &lt;property name="someProp" column="SOME_PROP" type="string"/&gt;
  &lt;/class&gt;
  &lt;/hibernate-mapping&gt;
  </code></pre>
  
  <p>Hibernate config:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;beans xmlns="http://www.springframework.org/schema/beans"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xmlns:tx="http://www.springframework.org/schema/tx"
  xmlns:context="http://www.springframework.org/schema/context"
  xsi:schemaLocation="
      http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
      http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx.xsd
      http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.0.xsd"&gt;
  
  &lt;!-- Oracle data source definition --&gt;
  &lt;bean id="oracleDataSource" class="org.springframework.jdbc.datasource.DriverManagerDataSource"&gt;
      &lt;property name="driverClassName"&gt;&lt;value&gt;${oracle.database.driverClassName}&lt;/value&gt;&lt;/property&gt;
      &lt;property name="url"&gt;&lt;value&gt;${oracle.database.url}&lt;/value&gt;&lt;/property&gt;
      &lt;property name="username"&gt;&lt;value&gt;${oracle.database.username}&lt;/value&gt;&lt;/property&gt;
      &lt;property name="password"&gt;&lt;value&gt;${oracle.database.password}&lt;/value&gt;&lt;/property&gt;
  &lt;/bean&gt;
  
  &lt;bean id="sessionFactory" class="org.springframework.orm.hibernate3.LocalSessionFactoryBean"&gt;
      &lt;property name="dataSource" ref="oracleDataSource" /&gt;
      &lt;property name="mappingResources"&gt;
          &lt;list&gt;
              &lt;value&gt;some-table.cfg.xml&lt;/value&gt;
          &lt;/list&gt;
      &lt;/property&gt;
      &lt;property name="hibernateProperties"&gt;
          &lt;props&gt;
              &lt;prop key="hibernate.dialect"&gt;org.hibernate.dialect.Oracle10gDialect&lt;/prop&gt;
              &lt;prop key="hibernate.show_sql"&gt;true&lt;/prop&gt;
              &lt;prop key="hibernate.current_session_context_class"&gt;thread&lt;/prop&gt;
          &lt;/props&gt;
      &lt;/property&gt;
  &lt;/bean&gt;
  </code></pre>
  
  <p></p>