diff --git a/onebusaway-gtfs-hibernate/src/main/java/org/onebusaway/gtfs/impl/HibernateGtfsRelationalDaoImpl.java b/onebusaway-gtfs-hibernate/src/main/java/org/onebusaway/gtfs/impl/HibernateGtfsRelationalDaoImpl.java index 6ddc0b32..0b9fac66 100644 --- a/onebusaway-gtfs-hibernate/src/main/java/org/onebusaway/gtfs/impl/HibernateGtfsRelationalDaoImpl.java +++ b/onebusaway-gtfs-hibernate/src/main/java/org/onebusaway/gtfs/impl/HibernateGtfsRelationalDaoImpl.java @@ -291,7 +291,7 @@ public Collection getAllAreas() { @Override public Collection getAllLocationGroupElements() { Collection groups = _ops.find("FROM LocationGroup"); - return groups.stream().flatMap(group -> group.getLocations().stream().map(stopLocation -> { + return groups.stream().flatMap(group -> group.getStops().stream().map(stopLocation -> { LocationGroupElement locationGroupElement = new LocationGroupElement(); locationGroupElement.setLocationGroupId(group.getId()); locationGroupElement.setName(group.getName());