In Hibernate mapping fileusing this code we can automatically generate the primary keys
<id name="emp number" type="integer"><column name="emp number"/><generator class="increment"/></id>