This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
As some already know I creating Crud app
I already have Read,Delete and create but I get an error while updating data
When I click on a reservation(for a hotel) I get the values from my reservation, in my form i can edit the value and I like to update it to the DB
My controller for my edit
In my Dao I only have one parameter the reservation ID (Is this right?)
In my DaoImpl I update my data
, I dont know which function to use to update data , I used refresh... / Also tried Merge
If i click on update i get this error:
SEVERE: Servlet.service() for servlet appServlet threw exception
java.lang.IllegalStateException: Handler parameter annotations are exclusive choices - do not specify more than one such annotation on the same parameter: public java.lang.String eu.test.test4.controller.ReservationController.reservationEditUpdate(java.lang.Integer,eu.test.test4.model.Reservation,org.springframework.validation.BindingResult,org.springframework.ui.ModelMap)
I dont know why but I have "0" as reservationId in my Post Method controller
Is there something wrong with my modelattribute ?