cjsolomon / Mulit-Modal

SRU Multi-Modal Project
0 stars 2 forks source link

Location Update() #18

Closed ghost closed 10 years ago

ghost commented 10 years ago

There is an issue with Location.Update.

The following code:

Location test_location = new Location();
String test_string = new String("Load Test String For The Homies");
test_location.addTravelMode(Vehicle.TravelModes.RAIL);

test_location.setName(test_string);
test_location.Update();
System.out.println(test_location.getID());
}

Is printing out 0 for the id meaning the update function is not setting the id correctly

JordanSchiller1064 commented 10 years ago

Rewrote Location code and fixed it