Fix pet status enum to uppercase
This commit is contained in:
@@ -30,7 +30,7 @@ public class Pet {
|
|||||||
|
|
||||||
@Enumerated(EnumType.STRING)
|
@Enumerated(EnumType.STRING)
|
||||||
@Column(name = "pet_status", nullable = false)
|
@Column(name = "pet_status", nullable = false)
|
||||||
private PetStatus petStatus = PetStatus.Available;
|
private PetStatus petStatus = PetStatus.AVAILABLE;
|
||||||
|
|
||||||
@Column(name = "pet_price", precision = 10, scale = 2)
|
@Column(name = "pet_price", precision = 10, scale = 2)
|
||||||
private BigDecimal petPrice;
|
private BigDecimal petPrice;
|
||||||
@@ -44,7 +44,7 @@ public class Pet {
|
|||||||
private LocalDateTime updatedAt;
|
private LocalDateTime updatedAt;
|
||||||
|
|
||||||
public enum PetStatus {
|
public enum PetStatus {
|
||||||
Available, Adopted, Under_Care
|
AVAILABLE, ADOPTED, UNDER_CARE
|
||||||
}
|
}
|
||||||
|
|
||||||
public Pet() {
|
public Pet() {
|
||||||
|
|||||||
Reference in New Issue
Block a user