Updates after editor feedback

This commit is contained in:
Markus Gulden 2018-02-03 13:10:31 +01:00
parent b9ac0dc78b
commit e15f2fc7dd
1 changed files with 2 additions and 6 deletions

View File

@ -27,14 +27,10 @@ public class ValidReservationValidator implements ConstraintValidator<ValidReser
return false; return false;
} }
if (reservation.getBegin() return (reservation.getBegin()
.isAfter(LocalDate.now()) .isAfter(LocalDate.now())
&& reservation.getBegin() && reservation.getBegin()
.isBefore(reservation.getEnd()) .isBefore(reservation.getEnd())
&& reservation.getRoom() > 0) { && reservation.getRoom() > 0);
return true;
}
return false;
} }
} }