| 1 | package edu.ucsb.cs156.example.entities; | |
| 2 | ||
| 3 | import jakarta.persistence.Entity; | |
| 4 | import jakarta.persistence.GeneratedValue; | |
| 5 | import jakarta.persistence.GenerationType; | |
| 6 | import jakarta.persistence.Id; | |
| 7 | import java.time.LocalDateTime; | |
| 8 | import lombok.AllArgsConstructor; | |
| 9 | import lombok.Builder; | |
| 10 | import lombok.Data; | |
| 11 | import lombok.NoArgsConstructor; | |
| 12 | ||
| 13 | /** This is a JPA entity that represents a Help Request. */ | |
| 14 | @Data | |
| 15 | @AllArgsConstructor | |
| 16 | @NoArgsConstructor | |
| 17 | @Builder | |
| 18 | @Entity(name = "helprequests") | |
| 19 | public class HelpRequest { | |
| 20 | @Id | |
| 21 | @GeneratedValue(strategy = GenerationType.IDENTITY) | |
| 22 | private long id; | |
| 23 | ||
| 24 | private String requesterEmail; | |
| 25 | private String teamId; | |
| 26 | private String tableOrBreakoutRoom; | |
| 27 | private LocalDateTime requestTime; | |
| 28 | private String explanation; | |
| 29 | private boolean solved; | |
| 30 | ||
| 31 | public boolean isSolved() { | |
| 32 |
2
1. isSolved : replaced boolean return with false for edu/ucsb/cs156/example/entities/HelpRequest::isSolved → KILLED 2. isSolved : replaced boolean return with true for edu/ucsb/cs156/example/entities/HelpRequest::isSolved → KILLED |
return solved; |
| 33 | } | |
| 34 | } | |
Mutations | ||
| 32 |
1.1 2.2 |