01: package org.objectweb.jonas.stests.appli;
02:
03: import java.io.Serializable;
04:
05: /**
06: * The primary key for a district.
07: */
08: public class DistrictID implements Serializable {
09:
10: public int districtId;
11: public String warehouseId;
12:
13: /**
14: * Creates a district key
15: * @param did an int that represents the district id
16: * @param wid a string that represents the warehouse id
17: */
18: public DistrictID(int did, String wid) {
19: districtId = did;
20: warehouseId = wid;
21: }
22:
23: /**
24: * Creates a district key
25: */
26: public DistrictID() {
27: }
28:
29: public String toString() {
30: return districtId + warehouseId;
31: }
32: }
|