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

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;

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

Remove unnecessary id property in Schedule class