package com.nearsoft.incubator.bo;

import org.codehaus.jackson.annotate.JsonIgnoreProperties;

import java.util.List;

/**
 * Created by edgar on 17/06/14.
 */
@JsonIgnoreProperties(ignoreUnknown = true)
public class Schedule {

    private List<Flight> departureFlights;
    private List<Flight> arrivalFlights;

    public int getId(){
        return 1;
    }

    public List<Flight> getDepartureFlights() {
        return departureFlights;
    }

    public void setDepartureFlights(List<Flight> departureFlights) {
        this.departureFlights = departureFlights;
    }

    public List<Flight> getArrivalFlights() {
        return arrivalFlights;
    }

    public void setArrivalFlights(List<Flight> returnFlights) {
        this.arrivalFlights = returnFlights;
    }

    public boolean isTravelPossible(){
        return !this.departureFlights.isEmpty() && !this.arrivalFlights.isEmpty();
    }
}

@@ -773,136 +773,7 @@
    %7D
-%0A%0A    public boolean isTravelPossible()%7B%0A        return !this.departureFlights.isEmpty() && !this.arrivalFlights.isEmpty();%0A    %7D
 %0A%7D%0A

Remove unused property