This tutorial does not attempt to cover all of Spring 2's features and options. Instead, it focuses narrowly on one proven approach to server application development using Spring. You will proceed through a complete "from concept to application" cycle, including:
- Performing domain analysis
- Coding business objects and services
- Unit testing of business objects
- Adding data access code painlessly to business objects using Spring JPA
- Implementing your services using Spring DAO (data access object)
- Coding integration tests for your services against DB2 Express-C
- Creating controllers for a Spring Model-View-Controller (MVC) based user interface
- Designing views for the user interface
- Creating a deployable WAR file of your application
- Configuring and deploying your application on the Apache Tomcat server
- Getting started with JPA in Spring 2.0: Gives a step-by-step approach to developing a stand-alone application to use JPA in Spring 2.0.
- Data Access With Spring and JPA: A step-by-step approach to developing a Web application that uses Spring and JPA for Data access. Uses a simple JSP as interface. This application is implemented on Glassfish.
- Using JPA with Spring 2.0: Describes how to use JPA and Spring in Weblogic 9.1 with Kodo JPA implementation.
I just completed the Introduction to Spring 2 and JPA tutorial and wanted to now expand it to allow me to have a form that I could use to edit the employee data. I made use of SimpleFormController and basically got the changed values in
ReplyDeletepublic ModelAndView onSubmit(Object command)
throws ServletException {
Employee emp = ((Employee) command);
Then I create an Employee and set all the changed values
Employee employ = employeeService.findById(emp.getEmpid());
eg. employ.setFirstName(firstName);
But when I do the
employeeService.update(employ);
Nothing is altered in the database!
I am really stuck and was wondering if there was either a tutorial that went one step further showing how to actually the update and save methods or what I am not doing here