tag:blogger.com,1999:blog-18313336.post115521265324390726..comments2024-03-18T03:30:55.520-04:00Comments on Abhi On Java: Spring 2 and JPA tutorialsabhihttp://www.blogger.com/profile/05788965755655733389noreply@blogger.comBlogger1125tag:blogger.com,1999:blog-18313336.post-22028729478763630682007-07-16T06:03:00.000-04:002007-07-16T06:03:00.000-04:00I just completed the Introduction to Spring 2 and ...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<BR/><BR/>public ModelAndView onSubmit(Object command)<BR/> throws ServletException {<BR/> Employee emp = ((Employee) command);<BR/><BR/>Then I create an Employee and set all the changed values<BR/>Employee employ = employeeService.findById(emp.getEmpid());<BR/>eg. employ.setFirstName(firstName);<BR/>But when I do the <BR/>employeeService.update(employ);<BR/><BR/>Nothing is altered in the database!<BR/><BR/>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 hereAnonymousnoreply@blogger.com