Skip to content

Commit

Permalink
wrong way fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
sheldonabrown committed Aug 11, 2023
1 parent 804e19d commit 4e22a29
Showing 1 changed file with 9 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@

import org.onebusaway.csv_entities.schema.annotations.CsvField;
import org.onebusaway.csv_entities.schema.annotations.CsvFields;
import org.onebusaway.gtfs.serialization.mappings.DefaultAgencyIdFieldMappingFactory;
import org.onebusaway.gtfs.serialization.mappings.EntityFieldMappingFactory;

/**
* An GTFS extension that allows for re-mapping of route + direction + stop
Expand All @@ -30,9 +32,13 @@ public class WrongWayConcurrency extends IdentityBean<Integer> {

@CsvField(ignore = true)
private int id;
private AgencyAndId routeId;
@CsvField(name = "route_id")
private String routeId;
@CsvField(name = "direction_id")
private String directionId;
@CsvField(name = "from_stop_id", mapping = DefaultAgencyIdFieldMappingFactory.class)
private AgencyAndId fromStopId;
@CsvField(name = "to_stop_id", mapping = DefaultAgencyIdFieldMappingFactory.class)
private AgencyAndId toStopId;

@Override
Expand All @@ -45,11 +51,11 @@ public void setId(Integer id) {
this.id = id;
}

public AgencyAndId getRouteId() {
public String getRouteId() {
return routeId;
}

public void setRouteId(AgencyAndId routeId) {
public void setRouteId(String routeId) {
this.routeId = routeId;
}

Expand Down

0 comments on commit 4e22a29

Please sign in to comment.