title: Auto Generate String Primary Key with Annotation in Hibernate
body: <p>I'm pretty new to Spring Boot and in the model there's an Id (primary key) which is String and I need to auto-generate it when saving new entity. </p>
  
  <pre><code>@Id
  @GeneratedValue(strategy = GenerationType.AUTO)
  private String id;
  private String name;
  private String description;
  </code></pre>
  
  <p>But, I get this error when saving a new entity. </p>
  
  <pre><code>"message": "Unknown integral data type for ids : java.lang.String; nested exception is org.hibernate.id.IdentifierGenerationException: 
  </code></pre>
  
  <p>How to avoid this error and do the auto generation <code>id</code> when a new entity is saved.</p>