title: autoincrement in Hibernate
body: <p>I have the ID of my table set to autoincrement in MySql 5.1</p>
  
  <p>How do I map my Hibernate  with autoincrements set in DBMS?</p>
  
  <p>I tried this way :</p>
  
  <pre><code>&lt;id name="id" type="int" column="ID" &gt;
  &lt;generator class="assigned"/&gt;
  &lt;/id&gt;
  </code></pre>
  
  <p>Though it doesn't show any error, it does not add anything. Thanks in advance.</p>