made some changes due to integration of spring with hibernate