integration of service and dao layer with controller using hibernate