Ignore:
Timestamp:
02/17/25 21:52:11 (4 months ago)
Author:
ste08 <sjovanoska@…>
Branches:
master
Children:
62bba0c
Parents:
9868304
Message:

Signup,Login,FlightSearch,Booking and Payment working!

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/main/java/com/example/skychasemk/dto/BookingDTO.java

    r9868304 rde83113  
    11package com.example.skychasemk.dto;
    22
    3 import com.example.skychasemk.model.Flight;
     3import lombok.Getter;
     4import lombok.Setter;
    45
    56import java.math.BigDecimal;
     
    89public class BookingDTO {
    910
    10     private Integer bookingID;
    11     private Integer userID;
     11    @Setter
     12    private Integer bookingId;
     13
     14    @Getter
     15    private Integer userId;
     16    @Setter
     17    @Getter
    1218    private Integer flightId;
     19    @Setter
     20    @Getter
    1321    private LocalDate bookingDate;
     22    @Setter
     23    @Getter
    1424    private PaymentStatus status;
     25    @Setter
     26    @Getter
    1527    private BigDecimal totalCost;
     28    @Setter
     29    @Getter
    1630    private Integer seatNumber;
    17 
    18     public Integer getFlightId() {
    19         return flightId;
    20     }
    21 
    22     public void setFlightId(Integer flightId) {
    23         this.flightId = flightId;
    24     }
    2531
    2632    public enum PaymentStatus {
     
    3036    }
    3137
    32     // Getters and Setters
    33     public Integer getBookingID() {
    34         return bookingID;
     38    public void setUserID(Integer userId) {
     39        this.userId = userId;
    3540    }
    3641
    37     public void setBookingID(Integer bookingID) {
    38         this.bookingID = bookingID;
    39     }
    40 
    41     public Integer getUserID() {
    42         return userID;
    43     }
    44 
    45     public void setUserID(Integer userID) {
    46         this.userID = userID;
    47     }
    48 
    49     public Integer getFlightID() {
    50         return flightId;
    51     }
    52 
    53     public void setFlightID(Integer flightId) {
    54         this.flightId = flightId;
    55     }
    56 
    57     public LocalDate getBookingDate() {
    58         return bookingDate;
    59     }
    60 
    61     public void setBookingDate(LocalDate bookingDate) {
    62         this.bookingDate = bookingDate;
    63     }
    64 
    65     public PaymentStatus getStatus() {
    66         return status;
    67     }
    68 
    69     public void setStatus(PaymentStatus status) {
    70         this.status = status;
    71     }
    72 
    73     public BigDecimal getTotalCost() {
    74         return totalCost;
    75     }
    76 
    77     public void setTotalCost(BigDecimal totalCost) {
    78         this.totalCost = totalCost;
    79     }
    80 
    81     public Integer getSeatNumber() {
    82         return seatNumber;
    83     }
    84 
    85     public void setSeatNumber(Integer seatNumber) {
    86         this.seatNumber = seatNumber;
    87     }
    8842}
Note: See TracChangeset for help on using the changeset viewer.