Mercurial > dive4elements > river
comparison flys-backend/src/main/java/de/intevation/flys/model/WstColumn.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 | 249390dd24e7 |
comparison
equal
deleted
inserted
replaced
171:4a83e14f40f9 | 172:605320b7df94 |
---|---|
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 public Wst getWst() { | |
45 return wst; | |
46 } | |
47 | |
44 public void setWst(Wst wst) { | 48 public void setWst(Wst wst) { |
45 this.wst = wst; | 49 this.wst = wst; |
46 } | 50 } |
47 | 51 |
48 public Wst getWst() { | 52 @Column(name = "name") |
49 return wst; | 53 public String getName() { |
54 return name; | |
50 } | 55 } |
51 | 56 |
52 public void setName(String name) { | 57 public void setName(String name) { |
53 this.name = name; | 58 this.name = name; |
54 } | 59 } |
55 | 60 |
56 public String getName() { | 61 @Column(name = "description") |
57 return name; | 62 public String getDescription() { |
63 return description; | |
58 } | 64 } |
59 | 65 |
60 public void setDescription(String description) { | 66 public void setDescription(String description) { |
61 this.description = description; | 67 this.description = description; |
62 } | |
63 | |
64 public String getDescription() { | |
65 return description; | |
66 } | 68 } |
67 | 69 |
68 public void setTimeInterval(TimeInterval timeInterval) { | 70 public void setTimeInterval(TimeInterval timeInterval) { |
69 this.timeInterval = timeInterval; | 71 this.timeInterval = timeInterval; |
70 } | 72 } |