Mercurial > hg > LGServices
comparison src/main/java/de/mpiwg/gazetteer/bo/LGTopic.java @ 43:9dbbbfd474f4
new: 1.existing topic in search result. 2.difference-set of book for topic
author | Zoe Hong <zhong@mpiwg-berlin.mpg.de> |
---|---|
date | Wed, 23 Dec 2015 16:03:32 +0100 |
parents | ba9515f22897 |
children | 13555aff1f88 |
comparison
equal
deleted
inserted
replaced
42:815cd86bb9ec | 43:9dbbbfd474f4 |
---|---|
43 @Column(name="namePinyin") | 43 @Column(name="namePinyin") |
44 private String namePinyin; | 44 private String namePinyin; |
45 | 45 |
46 @Column(name="description") | 46 @Column(name="description") |
47 private String description; | 47 private String description; |
48 | |
49 @Column(name="keywords") | |
50 private String keywords; | |
48 | 51 |
49 | 52 |
50 @Transient | 53 @Transient |
51 private List<Long> contributorsList; | 54 private List<Long> contributorsList; |
52 | 55 |
202 this.description = description; | 205 this.description = description; |
203 } | 206 } |
204 | 207 |
205 | 208 |
206 | 209 |
210 public String getKeywords() { | |
211 return keywords; | |
212 } | |
213 | |
214 | |
215 public void setKeywords(String keywords) { | |
216 this.keywords = keywords; | |
217 } | |
218 | |
219 | |
220 | |
221 | |
207 public void setContributorsList(List<Long> contributorsList) { | 222 public void setContributorsList(List<Long> contributorsList) { |
208 this.contributorsList = contributorsList; | 223 this.contributorsList = contributorsList; |
209 } | 224 } |
210 | 225 |
211 | 226 |
214 } | 229 } |
215 | 230 |
216 public DuplexKey<Long, Long> getKey(){ | 231 public DuplexKey<Long, Long> getKey(){ |
217 return new DuplexKey<Long, Long>(this.userId, this.id); | 232 return new DuplexKey<Long, Long>(this.userId, this.id); |
218 } | 233 } |
219 | 234 |
235 public String info() { | |
236 return nameEn + "(" + nameCh + ", " + namePinyin + ")"; | |
237 } | |
220 | 238 |
221 @Override | 239 @Override |
222 public String toString(){ | 240 public String toString(){ |
223 return "LGTopic[nameEn=" + nameEn + ", nameCh=" + nameCh + ", namePinyin=" + namePinyin + "]"; | 241 return "LGTopic[nameEn=" + nameEn + ", nameCh=" + nameCh + ", namePinyin=" + namePinyin + "]"; |
224 } | 242 } |
225 | 243 |
226 | 244 |
245 | |
246 | |
227 } | 247 } |