comparison flys-backend/src/main/java/de/intevation/flys/model/TimeInterval.java @ 172:605320b7df94

Added column annotations for simple fields. TODO: foreign keys. flys-backend/trunk@1464 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Mon, 14 Mar 2011 15:29:00 +0000
parents 4a83e14f40f9
children 8ea09ec7f0c8
comparison
equal deleted inserted replaced
171:4a83e14f40f9 172:605320b7df94
16 @Table(name = "time_intervals") 16 @Table(name = "time_intervals")
17 public class TimeInterval 17 public class TimeInterval
18 implements Serializable 18 implements Serializable
19 { 19 {
20 private Integer id; 20 private Integer id;
21 private Date startTime; 21 private Date startTime;
22 private Date stopTime; 22 private Date stopTime;
23 23
24 public TimeInterval() { 24 public TimeInterval() {
25 } 25 }
26 26
27 @Id 27 @Id
39 39
40 public void setId(Integer id) { 40 public void setId(Integer id) {
41 this.id = id; 41 this.id = id;
42 } 42 }
43 43
44 @Column(name = "start_time") // FIXME: type mapping needed?
45 public Date getStartTime() {
46 return startTime;
47 }
48
44 public void setStartTime(Date startTime) { 49 public void setStartTime(Date startTime) {
45 this.startTime = startTime; 50 this.startTime = startTime;
46 } 51 }
47 52
48 public Date getStartTime() { 53 @Column(name = "stop_time") // FIXME: type mapping needed?
49 return startTime; 54 public Date getStopTime() {
55 return stopTime;
50 } 56 }
51 57
52 public void setStopTime(Date stopTime) { 58 public void setStopTime(Date stopTime) {
53 this.stopTime = stopTime; 59 this.stopTime = stopTime;
54 } 60 }
55
56 public Date getStopTime() {
57 return stopTime;
58 }
59 } 61 }
60 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 : 62 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :

http://dive4elements.wald.intevation.org