I'm trying to populate a list inside an object from form ,when i press save i first start to validate the list values in my controller then return to next page if validation return true or back to the same page if validation return false,but also the code flow is ok and it return back to the same page when it false with error message it's persist the wrong values by it self.
I'm using jpa,spring MVC,i think it's autoFlush situation but how to configure the jpa flush mode using spring
thanks in regards,,,,