My web application is written using Spring MVC + Hibernate.
My model is "Customer" entity POJO.
I have got a DAO object "CustomerDAO", its method "saveCustomer(c)" contains the code interacting with Hibernate;
Then I created a " CustomerService with a "saveCustomer(c)" method who simply pass the customer object to the dao for saving;
Finally there are "CustomerController" and customer.jsp, who are responsible for the view layer, the jsp's form fields are bound to a Customer object on the controller side. The controller calls the service.
Cisco Certified Network Associate Exam,640-802 CCNA All Answers ~100/100. Daily update