Migrated the project to use annotation based controller class, jpa based persistence using hibernate