- Timestamp:
- 01/19/25 23:18:37 (4 months ago)
- Branches:
- main
- Children:
- f5b256e
- Parents:
- db39d9e
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/main/java/com/example/rezevirajmasa/demo/model/Restaurant.java
rdb39d9e r8ca35dc 151 151 @ManyToOne 152 152 @JoinColumn(name = "customer_id") 153 private Customer customer;153 private User user; 154 154 155 155 @ManyToOne … … 179 179 private LocalDateTime checkInDate; 180 180 181 public ReservationHistory( Customer customer, TableEntity table, Restaurant restaurant, LocalDateTime reservationDateTime, int partySize, String specialRequests, String status, String cancellationReason, LocalDateTime checkInDate) {182 this. customer = customer;181 public ReservationHistory(User user, TableEntity table, Restaurant restaurant, LocalDateTime reservationDateTime, int partySize, String specialRequests, String status, String cancellationReason, LocalDateTime checkInDate) { 182 this.user = user; 183 183 this.table = table; 184 184 this.restaurant = restaurant; … … 202 202 } 203 203 204 public Customer getCustomer() {205 return customer;206 } 207 208 public void set Customer(Customer customer) {209 this. customer = customer;204 public User getUser() { 205 return user; 206 } 207 208 public void setUser(User user) { 209 this.user = user; 210 210 } 211 211 … … 278 278 return "ReservationHistory{" + 279 279 "id=" + id + 280 ", customer=" + customer +280 ", user=" + user + 281 281 ", table=" + table + 282 282 ", restaurant=" + restaurant +
Note:
See TracChangeset
for help on using the changeset viewer.