title: jpa mapping java type to database type
body: <p>Every JPA-Provider (at least hibernate, eclipselink and openjpa) gives the possibility to create the ddl-schema on the basis of the jpa entity classes. But every database management system has his own data types. </p>
  
  <p>So how do the jpa-providers decide which sql datatype will be chosen. (I think it will be provider specific). Is there a Mapping like <code>String-&gt;varchar(xx), boolean-&gt;tinyint</code> and so on. But then this mapping has to be exist for every database, right?  Can anyone put me in the right direction please? I searched in the hibernate source-code but I did not find the right code snippets. </p>
  
  <p>Thanks!</p>