Skip to content

Commit d189ee4

Browse files
fix: change expiration field type from String to LocalDate in Recipe model
1 parent 4e7e8b6 commit d189ee4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/main/java/com/otavio/aifoodapp/model/Recipe.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
package com.otavio.aifoodapp.model;
22

3+
import java.time.LocalDate;
34
import java.util.HashSet;
45
import java.util.List;
56
import java.util.Set;
@@ -34,7 +35,7 @@ public class Recipe {
3435
private List<String> instructions;
3536

3637
private int quantity;
37-
private String expiration;
38+
private LocalDate expiration;
3839

3940
@ElementCollection(fetch = FetchType.LAZY)
4041
@CollectionTable(name = "tb_recipes_nutritional_info", joinColumns = @JoinColumn(name = "recipe_id"))

0 commit comments

Comments
 (0)