- Timestamp:
- 05/06/25 00:44:02 (13 days ago)
- Branches:
- main
- Children:
- e48199a
- Parents:
- 142c0f8
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/main/java/com/example/rezevirajmasa/demo/model/Restaurant.java
r142c0f8 rb67dfd3 146 146 @Id 147 147 @GeneratedValue(strategy = GenerationType.IDENTITY) 148 private Long id;148 private Long reservationHistoryId; 149 149 150 150 @ManyToOne … … 170 170 171 171 @Column(name = "status") 172 private String status;172 private String reservationStatus; 173 173 174 174 @Column(name = "cancellation_reason") … … 185 185 this.partySize = partySize; 186 186 this.specialRequests = specialRequests; 187 this. status = status;187 this.reservationStatus = status; 188 188 this.cancellationReason = cancellationReason; 189 189 this.checkInDate = checkInDate; … … 194 194 195 195 public Long getId() { 196 return id;196 return reservationHistoryId; 197 197 } 198 198 199 199 public void setId(Long id) { 200 this. id = id;200 this.reservationHistoryId = id; 201 201 } 202 202 … … 242 242 243 243 public String getStatus() { 244 return status;244 return reservationStatus; 245 245 } 246 246 247 247 public void setStatus(String status) { 248 this. status = status;248 this.reservationStatus = status; 249 249 } 250 250 … … 276 276 public String toString() { 277 277 return "ReservationHistory{" + 278 "id=" + id +278 "id=" + reservationHistoryId + 279 279 ", user=" + user + 280 280 ", table=" + table + … … 283 283 ", partySize=" + partySize + 284 284 ", specialRequests='" + specialRequests + '\'' + 285 ", status='" + status + '\'' +285 ", status='" + reservationStatus + '\'' + 286 286 ", cancellationReason='" + cancellationReason + '\'' + 287 287 ", checkInDate=" + checkInDate +
Note:
See TracChangeset
for help on using the changeset viewer.