Skip to content

Commit 8651770

Browse files
committed
Add enum for weekday and validate that closing time is after opening time
1 parent e51c6ec commit 8651770

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/main/java/org/example/entities/OpeningHours.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ public class OpeningHours {
1111
@GeneratedValue(strategy = GenerationType.IDENTITY)
1212
private Long id;
1313

14-
@Enumerated(EnumType.ORDINAL)
14+
@Enumerated(EnumType.STRING)
1515
private Weekday weekday;
1616

1717
private LocalTime openingTime;

0 commit comments

Comments
 (0)