title: Hibernate with NVARCHAR2
body: <p>I have table with a column as <code>NVARCHAR2</code>, and I have build my object with hibernate annotations, When i want to insert into DB or fetch from DB the result is something like that "???????",
  I have implemented a custom Dialect as follows but it did not work.</p>
  
  <pre><code>public class CustomOracleDialect extends Oracle10gDialect{
  
      public CMSCustomOracleDialect() {
          registerHibernateType( Types.NVARCHAR, Hibernate.STRING.getName() );
          registerColumnType( Types.VARCHAR, "nvarchar2($1)" );
          registerColumnType( Types.CLOB, "nclob" );
          registerColumnType( Types.NCLOB, "nclob" );
      }
  
  }
  </code></pre>