CORRECTING A FEW MISTAKES IN THE PREVIOUS POST,
October 17, 2008 at 10:44 PM
Just to correct a few mistakes in my previous post.
If you create a table whose id field is AUTO INCREMENT, you will have to change the file contact.hbm.xml. This is necessary to specify that the id generation is auto increment(the current id generation relies on the id you send to contact.setId()) By changing this, you can comment the following line in your FirstExample.java