package com.nearsoft.incubator.model;

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;
    //Necessary for the front-end to identify single Schedule objects
    private static final int DEFAULT_ID = 1;

    public int getId(){
        return DEFAULT_ID;
    }

    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;
    }
}

@@ -313,181 +313,8 @@
 hts;
-%0A    //Necessary for the front-end to identify single Schedule objects%0A    private static final int DEFAULT_ID = 1;%0A%0A    public int getId()%7B%0A        return DEFAULT_ID;%0A    %7D
 %0A%0A  

Remove unnecessary id property in Schedule class