title: Unknown integral data type
body: <p>I have a database with the following specification for the ID:</p>
  
  <blockquote>
    <p>code: VARCHAR(3) - this is the primary key, a String with a maximum
    length of 3 characters</p>
  </blockquote>
  
  <p>And I am mapping the Id in the following way:</p>
  
  <pre><code>    @Id
      @GeneratedValue
      private String code;
  </code></pre>
  
  <p>And I am getting this error when trying to invoke <code>session.save()</code>:</p>
  
  <blockquote>
    <p>Exception in thread "main"
    org.hibernate.id.IdentifierGenerationException: Unknown integral data
    type for ids : java.lang.String</p>
  </blockquote>
  
  <p>What am I missing?</p>
  
  <p>Thank you! :)</p>