title: cannot update a record Hibernate
body: <p>org.hibernate.StaleStateException: Batch update returned unexpected row count from update [0]; actual row count: 0; expected: 1</p>
  
  <pre><code>public class QuoteRequest implements Serializable {
  
  @Id
  @GeneratedValue(strategy = GenerationType.AUTO)
  private Long quoteRequestId = null;
  </code></pre>
  
  <p>}</p>
  
  <pre><code>quoteRequestEntity = quoteRequestDao.update(quoteRequestEntity);
  </code></pre>
  
  <p>I am getting the above error when i am trying to update my quote request. I do not undersatnd what is wrong in my mapping. Can somebody please help.</p>