Updates after editor feedback
This commit is contained in:
parent
b9ac0dc78b
commit
e15f2fc7dd
|
@ -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;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue