Esempio n. 1
0
 protected void bind(Object source, Object targetValue) {
   DataBinder binder = new DataBinder(source);
   binder.bind(
       new MutablePropertyValues(Collections.singletonMap(change.getPropertyName(), targetValue)));
   if (binder.getBindingResult().hasErrors()) {
     throw new StudyCalendarSystemException(
         "Unable to update property value", new BindException(binder.getBindingResult()));
   }
 }