Ignore:
Timestamp:
05/06/25 00:44:02 (13 days ago)
Author:
Aleksandar Panovski <apano77@…>
Branches:
main
Children:
e48199a
Parents:
142c0f8
Message:

Normalization needed to continue, till here done

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/main/java/com/example/rezevirajmasa/demo/model/Restaurant.java

    r142c0f8 rb67dfd3  
    146146        @Id
    147147        @GeneratedValue(strategy = GenerationType.IDENTITY)
    148         private Long id;
     148        private Long reservationHistoryId;
    149149
    150150        @ManyToOne
     
    170170
    171171        @Column(name = "status")
    172         private String status;
     172        private String reservationStatus;
    173173
    174174        @Column(name = "cancellation_reason")
     
    185185            this.partySize = partySize;
    186186            this.specialRequests = specialRequests;
    187             this.status = status;
     187            this.reservationStatus = status;
    188188            this.cancellationReason = cancellationReason;
    189189            this.checkInDate = checkInDate;
     
    194194
    195195        public Long getId() {
    196             return id;
     196            return reservationHistoryId;
    197197        }
    198198
    199199        public void setId(Long id) {
    200             this.id = id;
     200            this.reservationHistoryId = id;
    201201        }
    202202
     
    242242
    243243        public String getStatus() {
    244             return status;
     244            return reservationStatus;
    245245        }
    246246
    247247        public void setStatus(String status) {
    248             this.status = status;
     248            this.reservationStatus = status;
    249249        }
    250250
     
    276276        public String toString() {
    277277            return "ReservationHistory{" +
    278                     "id=" + id +
     278                    "id=" + reservationHistoryId +
    279279                    ", user=" + user +
    280280                    ", table=" + table +
     
    283283                    ", partySize=" + partySize +
    284284                    ", specialRequests='" + specialRequests + '\'' +
    285                     ", status='" + status + '\'' +
     285                    ", status='" + reservationStatus + '\'' +
    286286                    ", cancellationReason='" + cancellationReason + '\'' +
    287287                    ", checkInDate=" + checkInDate +
Note: See TracChangeset for help on using the changeset viewer.