title: Using Hibernate to find the specific database type for a given Java type
body: <p>Is there a class that I could use in Hibernate so that I could pass in a class and it would return the appropriate database type name?</p>
  
  <p>For example,</p>
  
  <pre><code>String type = HibernateTypeGod.getTypeName(String.class);
  </code></pre>
  
  <p>Hibernate would determine the dialect I specified and return me VARCHAR2 in the case of Oracle.</p>