Rev | Line | |
---|
[57e58a3] | 1 | package com.example.skychasemk.model;
|
---|
| 2 |
|
---|
| 3 | import jakarta.persistence.*;
|
---|
| 4 |
|
---|
| 5 | @Entity
|
---|
[3d60932] | 6 | @Table(name="airport")
|
---|
[57e58a3] | 7 | public class Airport {
|
---|
| 8 |
|
---|
| 9 | @Id
|
---|
| 10 | @GeneratedValue(strategy = GenerationType.IDENTITY)
|
---|
[3d60932] | 11 | @Column(name = "airportid")
|
---|
[57e58a3] | 12 | private Integer airportID;
|
---|
| 13 | @Column(name = "name")
|
---|
| 14 |
|
---|
| 15 | private String name;
|
---|
| 16 | @Column(name = "city")
|
---|
| 17 |
|
---|
| 18 | private Integer city;
|
---|
| 19 | @Column(name = "country")
|
---|
| 20 |
|
---|
| 21 | private String country;
|
---|
| 22 | @Column(name = "code")
|
---|
| 23 |
|
---|
| 24 | private String code;
|
---|
| 25 |
|
---|
| 26 | // Getters and Setters
|
---|
| 27 | public Integer getAirportID() {
|
---|
| 28 | return airportID;
|
---|
| 29 | }
|
---|
| 30 |
|
---|
| 31 | public void setAirportID(Integer airportID) {
|
---|
| 32 | this.airportID = airportID;
|
---|
| 33 | }
|
---|
| 34 |
|
---|
| 35 | public String getName() {
|
---|
| 36 | return name;
|
---|
| 37 | }
|
---|
| 38 |
|
---|
| 39 | public void setName(String name) {
|
---|
| 40 | this.name = name;
|
---|
| 41 | }
|
---|
| 42 |
|
---|
| 43 | public Integer getCity() {
|
---|
| 44 | return city;
|
---|
| 45 | }
|
---|
| 46 |
|
---|
| 47 | public void setCity(Integer city) {
|
---|
| 48 | this.city = city;
|
---|
| 49 | }
|
---|
| 50 |
|
---|
| 51 | public String getCountry() {
|
---|
| 52 | return country;
|
---|
| 53 | }
|
---|
| 54 |
|
---|
| 55 | public void setCountry(String country) {
|
---|
| 56 | this.country = country;
|
---|
| 57 | }
|
---|
| 58 |
|
---|
| 59 | public String getCode() {
|
---|
| 60 | return code;
|
---|
| 61 | }
|
---|
| 62 |
|
---|
| 63 | public void setCode(String code) {
|
---|
| 64 | this.code = code;
|
---|
| 65 | }
|
---|
| 66 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.