Mercurial > hg > LGServices
diff src/main/java/de/mpiwg/gazetteer/db/DBBook.java @ 89:85e27da9b18a
New feature : add book_year and edition_year in Books page
author | Calvin Yeh <cyeh@mpipw-berlin.mpg.com> |
---|---|
date | Wed, 21 Jun 2017 05:58:54 +0200 |
parents | 141fa833d126 |
children |
line wrap: on
line diff
--- a/src/main/java/de/mpiwg/gazetteer/db/DBBook.java Wed Jun 21 05:56:02 2017 +0200 +++ b/src/main/java/de/mpiwg/gazetteer/db/DBBook.java Wed Jun 21 05:58:54 2017 +0200 @@ -26,7 +26,8 @@ private String comments = ""; private String toc_correction = ""; - private Integer year = 0; + private Integer book_year = 0; + private Integer edition_year = 0; private String source = ""; @@ -58,7 +59,8 @@ this.toc_correction = rs.getString("toc_correction"); - this.year = rs.getInt("year"); + this.book_year = rs.getInt("book_year"); + this.edition_year = rs.getInt("edition_year"); this.source = rs.getString("source"); } @@ -234,13 +236,21 @@ this.currentSectionVersion = currentSectionVersion; } - public Integer getYear() { - return this.year; + public Integer getBookYear() { + return this.book_year; } - public void setYear(Integer pYear) { - this.year = pYear; + public void setBookYear(Integer pYear) { + this.book_year = pYear; + } + + public Integer getEditionYear() { + return this.edition_year; + } + + public void setEditionYear(Integer pYear) { + this.edition_year = pYear; } public String getSource() {