Hi, good afternoon,
I have a problem with boolean type. When I get the information from the request, sometimes the value for the boolean types are not in the request and get the default value.
Form<Car> carForm = formFactory.form(Car.class).bindFromRequest(request);
Car car = carForm.get();
And in the Entity Car I have:
public boolean isAutomatic = false;
When isAutomatic is not in the request and car.update() , the value is not updated.
I have temporarily solved it with car.setIsAutomatic(car.getIsAutomatic()); but it is not the solution.
Any idea? Thanks