title: Hibernate - ids for this class must be manually assigned before calling save()
body: <p>We have following error </p>
  
  <pre><code>org.hibernate.id.IdentifierGenerationException: 
  ids for this class must be manually assigned before calling save():
  com.somepage.entity.MyObject
  </code></pre>
  
  <p>and code</p>
  
  <pre><code>@Entity
  @Table(name = "MYOBJECT")
  public class MyObject{
  
  private String myId;
  private String title;
  
  @Id
  @Column(name = "MYID", unique = true, nullable = false)
  public String getId() {
      return this.myId;
  }
  
  public void setVin(String vin) {
      this.vin = vin;
  }
  
  @Column(name = "TITLE", length = 10)
  public String getTitle() {
      return this.title;
  }
  
  public void setTitle(String title) {
      this.title = title;
  }
  }
  </code></pre>
  
  <p>I have an entity where I enter (in the form, from webpage) data to the object including the ID. Is it necessary to get a GeneratorValue? How do I enter my ID by myself (without any unnecessary stuff)? Any ideas?</p>