Mercurial > hg > LGServices
comparison src/main/java/de/mpiwg/gazetteer/db/DBSectionVersion.java @ 15:d81a5401b9af
new: sorting in books page
author | Zoe Hong <zhong@mpiwg-berlin.mpg.de> |
---|---|
date | Mon, 01 Jun 2015 14:35:35 +0200 |
parents | f15b0214cc1c |
children | 86694755415d |
comparison
equal
deleted
inserted
replaced
14:3387d855a194 | 15:d81a5401b9af |
---|---|
1 package de.mpiwg.gazetteer.db; | 1 package de.mpiwg.gazetteer.db; |
2 | 2 |
3 import java.sql.ResultSet; | 3 import java.sql.ResultSet; |
4 import java.sql.SQLException; | 4 import java.sql.SQLException; |
5 | 5 |
6 public class DBSectionVersion { | 6 public class DBSectionVersion implements Comparable<DBSectionVersion>{ |
7 | 7 |
8 private String id; | 8 private String id; |
9 private String version; | 9 private String version; |
10 private String editor; | 10 private String editor; |
11 private String date; | 11 private String date; |
56 } | 56 } |
57 | 57 |
58 public void setBooks_id(String books_id) { | 58 public void setBooks_id(String books_id) { |
59 this.books_id = books_id; | 59 this.books_id = books_id; |
60 } | 60 } |
61 | |
62 @Override | |
63 public int compareTo(DBSectionVersion o) { | |
64 return this.getId().compareTo(o.getId()); | |
61 | 65 |
66 } | |
62 | 67 |
63 | |
64 | 68 |
65 | 69 |
66 | 70 |
67 | 71 |
68 } | 72 } |