A demo example for inserting data into Mysql database from a java program using hibernate.