1 package org.hibernate.test.optlock; 3 4 7 public class Document { 8 private Long id; 9 private String author; 10 private String title; 11 private String summary; 12 private String text; 13 private PublicationDate pubDate; 14 private int totalSales; 15 18 public String getAuthor() { 19 return author; 20 } 21 24 public void setAuthor(String author) { 25 this.author = author; 26 } 27 30 public Long getId() { 31 return id; 32 } 33 36 public void setId(Long id) { 37 this.id = id; 38 } 39 42 public String getSummary() { 43 return summary; 44 } 45 48 public void setSummary(String summary) { 49 this.summary = summary; 50 } 51 54 public String getText() { 55 return text; 56 } 57 60 public void setText(String text) { 61 this.text = text; 62 } 63 66 public String getTitle() { 67 return title; 68 } 69 72 public void setTitle(String title) { 73 this.title = title; 74 } 75 public PublicationDate getPubDate() { 76 return pubDate; 77 } 78 public void setPubDate(PublicationDate pubDate) { 79 this.pubDate = pubDate; 80 } 81 public int getTotalSales() { 82 return totalSales; 83 } 84 public void setTotalSales(int totalSales) { 85 this.totalSales = totalSales; 86 } 87 } 88 | Popular Tags |