title: Create table using Hibernate JPA for Oracle throws error
body: <p>I try to auto-create Oracle tables using JPA by setting hibernate.hbm2ddl.auto to 'create'.
  One of the entity field is boolean type and in Java it is like below:</p>
  
  <pre><code>private boolean activateCustomer;
  </code></pre>
  
  <p>However, when we run it an error is thrown and when I look at the error the generated sql type is boolean instead of Number(1). I use Hibernate 4.1.9 and Oracle XE (the file: OracleXE112_Win32.zip).</p>
  
  <p>From what I found on the internet (Mostly some years old) by default it should be Number(1). Has there been any change to Oracle, Hibernate or JPA to change the behaviour?</p>
  
  <p>Or, is there configuration I have missed? Thanks.</p>
  
  <hr>
  
  <p>JPA configuration:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8" standalone="no"?&gt;
  &lt;persistence xmlns="http://java.sun.com/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="2.0" xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd"&gt;
  &lt;persistence-unit name="persistenceUnit" transaction-type="RESOURCE_LOCAL"&gt;
      &lt;provider&gt;org.hibernate.ejb.HibernatePersistence&lt;/provider&gt;
      &lt;properties&gt;
          &lt;property name="hibernate.dialect" value="org.hibernate.dialect.OracleDialect"/&gt;
          &lt;!-- value="create" to build a new database on each run; value="update" to modify an existing database; value="create-drop" means the same as "create" but also drops tables when Hibernate closes; value="validate" makes no changes to the database --&gt;
          &lt;property name="hibernate.hbm2ddl.auto" value="create"/&gt;
          &lt;property name="hibernate.ejb.naming_strategy" value="org.hibernate.cfg.ImprovedNamingStrategy"/&gt;
          &lt;property name="hibernate.connection.charSet" value="UTF-8"/&gt;
          &lt;!-- Uncomment the following two properties for JBoss only --&gt;
          &lt;!-- property name="hibernate.validator.apply_to_ddl" value="false" /--&gt;
          &lt;!-- property name="hibernate.validator.autoregister_listeners" value="false" /--&gt;
      &lt;/properties&gt;
  &lt;/persistence-unit&gt;
  </code></pre>
  
  <p></p>