1 |
package dk.thoerup.traininfoservice.jdo; |
2 |
|
3 |
import javax.jdo.annotations.IdGeneratorStrategy; |
4 |
import javax.jdo.annotations.PersistenceCapable; |
5 |
import javax.jdo.annotations.Persistent; |
6 |
import javax.jdo.annotations.PrimaryKey; |
7 |
|
8 |
import com.google.appengine.api.datastore.Key; |
9 |
|
10 |
@PersistenceCapable |
11 |
public class JdoStationAlias { |
12 |
|
13 |
@PrimaryKey |
14 |
@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY) |
15 |
private Key id; |
16 |
|
17 |
@Persistent |
18 |
private JdoStationBean station; |
19 |
|
20 |
@Persistent |
21 |
private String alias; |
22 |
|
23 |
/****** accessors ******/ |
24 |
|
25 |
public Key getId() { |
26 |
return id; |
27 |
} |
28 |
|
29 |
public void setId(Key id) { |
30 |
this.id = id; |
31 |
} |
32 |
|
33 |
public JdoStationBean getStation() { |
34 |
return station; |
35 |
} |
36 |
|
37 |
public void setStation(JdoStationBean station) { |
38 |
this.station = station; |
39 |
} |
40 |
|
41 |
public String getAlias() { |
42 |
return alias; |
43 |
} |
44 |
|
45 |
public void setAlias(String alias) { |
46 |
this.alias = alias; |
47 |
} |
48 |
|
49 |
|
50 |
|
51 |
} |