File tree Expand file tree Collapse file tree 2 files changed +1
-3
lines changed
src/main/java/de/doubleslash/keeptime Expand file tree Collapse file tree 2 files changed +1
-3
lines changed Original file line number Diff line number Diff line change 2727@ Repository
2828public interface WorkRepository extends JpaRepository <Work , Long > {
2929
30- List <Work > findByCreationDate (LocalDate creationDate );
31-
3230 List <Work > findByCreationDateOrderByStartTimeAsc (LocalDate creationDate );
3331}
Original file line number Diff line number Diff line change @@ -248,7 +248,7 @@ private void loadCalenderWidget() {
248248 @ Override
249249 public void updateItem (final LocalDate item , final boolean empty ) {
250250 super .updateItem (item , empty );
251- if (model .getWorkRepository ().findByCreationDate (item ).isEmpty ()) {
251+ if (model .getWorkRepository ().findByCreationDateOrderByStartTimeAsc (item ).isEmpty ()) {
252252 setDisable (true );
253253 setStyle (FX_BACKGROUND_COLOR_NOT_WORKED );
254254 }
You can’t perform that action at this time.
0 commit comments