KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > hibernate > test > optlock > Document


1 //$Id: Document.java,v 1.3 2005/07/19 18:51:24 oneovthafew Exp $
2
package org.hibernate.test.optlock;
3
4 /**
5  * @author Gavin King
6  */

7 public class Document {
8     private Long JavaDoc id;
9     private String JavaDoc author;
10     private String JavaDoc title;
11     private String JavaDoc summary;
12     private String JavaDoc text;
13     private PublicationDate pubDate;
14     private int totalSales;
15     /**
16      * @return Returns the author.
17      */

18     public String JavaDoc getAuthor() {
19         return author;
20     }
21     /**
22      * @param author The author to set.
23      */

24     public void setAuthor(String JavaDoc author) {
25         this.author = author;
26     }
27     /**
28      * @return Returns the id.
29      */

30     public Long JavaDoc getId() {
31         return id;
32     }
33     /**
34      * @param id The id to set.
35      */

36     public void setId(Long JavaDoc id) {
37         this.id = id;
38     }
39     /**
40      * @return Returns the summary.
41      */

42     public String JavaDoc getSummary() {
43         return summary;
44     }
45     /**
46      * @param summary The summary to set.
47      */

48     public void setSummary(String JavaDoc summary) {
49         this.summary = summary;
50     }
51     /**
52      * @return Returns the text.
53      */

54     public String JavaDoc getText() {
55         return text;
56     }
57     /**
58      * @param text The text to set.
59      */

60     public void setText(String JavaDoc text) {
61         this.text = text;
62     }
63     /**
64      * @return Returns the title.
65      */

66     public String JavaDoc getTitle() {
67         return title;
68     }
69     /**
70      * @param title The title to set.
71      */

72     public void setTitle(String JavaDoc 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