- Timestamp:
- 02/13/25 10:05:35 (4 months ago)
- Branches:
- master
- Children:
- a70b5a4
- Parents:
- 57e58a3
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/main/java/com/example/skychasemk/model/Flight.java
r57e58a3 r3d60932 1 1 package com.example.skychasemk.model; 2 2 3 import com.fasterxml.jackson.annotation.JsonIgnore; 3 4 import jakarta.persistence.*; 4 5 import lombok.Getter; … … 42 43 43 44 private Integer availableSeats; 44 @Column(name = "departure Date")45 @Column(name = "departure_date") 45 46 46 47 private LocalDate departureDate; 47 48 48 @Column(name="return Date")49 @Column(name="return_date") 49 50 private LocalDate returnDate; 50 51 51 52 @OneToMany(mappedBy = "flightId", fetch = FetchType.LAZY) 53 @JsonIgnore 52 54 private List<Booking> bookings; 55 56 public Flight(){} 53 57 54 58 }
Note:
See TracChangeset
for help on using the changeset viewer.