changed hibernate configuration,added catch block for exception in
hibernate implementation