Modified Entity classes to avoid warnings, added hibernateutil class to connect to db, updated hibernate xml file so that it is correctly parsed.