Skip to content

Instantly share code, notes, and snippets.

@hamoungh
Created February 6, 2015 14:51
Show Gist options
  • Save hamoungh/a6b31218d21df433415a to your computer and use it in GitHub Desktop.
Save hamoungh/a6b31218d21df433415a to your computer and use it in GitHub Desktop.
package data;
import java.io.Serializable;
import java.util.Date;
public class Flight implements Serializable{
private static final long serialVersionUID = 313521247823559928L;
Integer flight_id;
String origin;
String destination;
Date time;
Integer number_of_seats;
public Flight(){}
public Flight(Integer flight_id, String origin, String destination,
Date time, Integer number_of_seats) {
super();
this.flight_id = flight_id;
this.origin = origin;
this.destination = destination;
this.time = time;
this.number_of_seats = number_of_seats;
}
public Integer getFlight_id() {
return flight_id;
}
public void setFlight_id(Integer flight_id) {
this.flight_id = flight_id;
}
public String getOrigin() {
return origin;
}
public void setOrigin(String origin) {
this.origin = origin;
}
public String getDestination() {
return destination;
}
public void setDestination(String destination) {
this.destination = destination;
}
public Date getTime() {
return time;
}
public void setTime(Date time) {
this.time = time;
}
public Integer getNumber_of_seats() {
return number_of_seats;
}
public void setNumber_of_seats(Integer number_of_seats) {
this.number_of_seats = number_of_seats;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment