diff options
author | Christopher Baines <cbaines8@gmail.com> | 2012-01-29 23:46:01 +0000 |
---|---|---|
committer | Christopher Baines <cbaines8@gmail.com> | 2012-01-29 23:46:01 +0000 |
commit | e78d1fa40d32a97018e2831fd0592d6b6c1b3d7e (patch) | |
tree | e8cd9065c2dc756a7357ebb8ee49cb21fbe41287 /src/net/cbaines/suma/Bus.java | |
parent | 75207a422e195ad26584d6a5d186dfd3e20f38f9 (diff) | |
download | southamptonuniversitymap-e78d1fa40d32a97018e2831fd0592d6b6c1b3d7e.tar southamptonuniversitymap-e78d1fa40d32a97018e2831fd0592d6b6c1b3d7e.tar.gz |
Changed the icons, updated the database, and implemented more of the next/previous stop movement stuff, needs more work though.
Diffstat (limited to 'src/net/cbaines/suma/Bus.java')
-rw-r--r-- | src/net/cbaines/suma/Bus.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/net/cbaines/suma/Bus.java b/src/net/cbaines/suma/Bus.java index 533c43c..d8d96f3 100644 --- a/src/net/cbaines/suma/Bus.java +++ b/src/net/cbaines/suma/Bus.java @@ -53,8 +53,8 @@ public class Bus { /** * The direction which the bus is travelling. */ - @DatabaseField(canBeNull = true, foreign = true) - Direction direction; + @DatabaseField(canBeNull = false) + String direction; /** * The destination the bus is travelling towards. @@ -75,10 +75,10 @@ public class Bus { * @param dir * The direction which the bus is travelling. */ - Bus(String id, BusRoute route, Direction dir) { + Bus(String id, BusRoute route, String direction) { this.id = id; this.route = route; - this.direction = dir; + this.direction = direction; } /** |