diff options
Diffstat (limited to 'src/net/cbaines/suma/Bus.java')
-rw-r--r-- | src/net/cbaines/suma/Bus.java | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/src/net/cbaines/suma/Bus.java b/src/net/cbaines/suma/Bus.java index 9894e6b..5cbf375 100644 --- a/src/net/cbaines/suma/Bus.java +++ b/src/net/cbaines/suma/Bus.java @@ -19,53 +19,41 @@ package net.cbaines.suma; -import com.j256.ormlite.field.DatabaseField; -import com.j256.ormlite.table.DatabaseTable; - /** * Represents a bus * * @author Christopher Baines <cbaines8@gmail.com> * */ -@DatabaseTable(tableName = "buses") public class Bus { final static String ID_FIELD_NAME = "id"; final static String ROUTE_FIELD_NAME = "route"; final static String DIRECTION_FIELD_NAME = "direction"; - @DatabaseField(generatedId = true) - int gid; - /** * The identification number of the bus. */ - @DatabaseField(canBeNull = true) String id; /** * The route the bus is travelling. */ - @DatabaseField(canBeNull = false, foreign = true) BusRoute route; /** * The direction which the bus is travelling. */ - @DatabaseField(canBeNull = true) String direction; /** * The destination the bus is travelling towards. */ - @DatabaseField(canBeNull = true, foreign = true) BusStop destination; /** * The destination the bus is travelling towards. */ - @DatabaseField(canBeNull = true) String destinationString; Bus() { |