simple application with hibernate configuration