Hibernate example Setup to run this example : Local instance of mysql. Database test in mysql instance. Root user with no password Table DBUSER in test db. Class DBUser has details for table.