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/model/Payment.java

    r9868304 rde83113  
    1313public class Payment {
    1414
     15    @Setter
    1516    @Id
    1617    @GeneratedValue(strategy = GenerationType.IDENTITY)
     
    1920    private Integer paymentID;
    2021
    21     @Column(name = "bookingid")
     22    //@Column(name = "bookingId")
     23    @Setter
     24    @Column(name="bookingid")
     25    private Integer bookingId;
     26    @Getter
     27    @Column(name = "userid")
    2228
    23     private Integer bookingID;
    24     @Column(name = "UserID")
    25 
    26     private Integer userID;
     29    private Integer userId;
    2730    @Setter
    2831    @Column(name = "payment_method")
     
    3942
    4043    private LocalDate transactionDate;
     44    @Setter
     45    @Getter
    4146    @Column(name = "payment_status")
    4247
    4348    @Enumerated(EnumType.STRING)
    4449    private PaymentStatus status;
     50
    4551
    4652    public enum PaymentStatus {
     
    5662    }
    5763
    58     public Integer getPaymentID() {
    59         return paymentID;
     64    public Integer getBookingID() {
     65        return bookingId;
    6066    }
    6167
    62     public Integer getBookingID() {
    63         return bookingID;
     68    public void setUserID(Integer userId) {
     69        this.userId = userId;
    6470    }
    6571
    66     public Integer getUserID() {
    67         return userID;
    68     }
    69 
    70     public void setUserID(Integer userID) {
    71         this.userID = userID;
    72     }
    73 
    74     public PaymentMethod getMethod() {
    75         return method;
    76     }
    77 
    78     public void setMethod(PaymentMethod method) {
    79         this.method = method;
    80     }
    81 
    82     public BigDecimal getAmount() {
    83         return amount;
    84     }
    85 
    86     public void setPaymentID(Integer paymentID) {
    87         this.paymentID = paymentID;
    88     }
    89 
    90     public void setBookingID(Integer bookingID) {
    91         this.bookingID = bookingID;
    92     }
    93 
    94     public void setAmount(BigDecimal amount) {
    95         this.amount = amount;
    96     }
    97 
    98     public LocalDate getTransactionDate() {
    99         return transactionDate;
    100     }
    101 
    102     public void setTransactionDate(LocalDate transactionDate) {
    103         this.transactionDate = transactionDate;
    104     }
    105 
    106     public PaymentStatus getStatus() {
    107         return status;
    108     }
    109 
    110     public void setStatus(PaymentStatus status) {
    111         this.status = status;
    112     }
    113 
    114     public void setUserID(Long userID) {
    115         this.userID = Math.toIntExact(userID);
     72    public void setUserId(Long userId) {
     73        this.userId = Math.toIntExact(userId);
    11674    }
    11775
Note: See TracChangeset for help on using the changeset viewer.