KickJava   Java API By Example, From Geeks To Geeks.

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


1 //$Id: Document.java,v 1.1 2005/05/27 03:54:08 oneovthafew Exp $
2
package org.hibernate.test.stateless;
3
4 /**
5  * @author Gavin King
6  */

7 public class Document {
8     
9     private String JavaDoc text;
10     private String JavaDoc name;
11
12     Document() {}
13     
14     public Document(String JavaDoc text, String JavaDoc name) {
15         this.text = text;
16         this.name = name;
17     }
18
19     public String JavaDoc getName() {
20         return name;
21     }
22
23     public void setName(String JavaDoc name) {
24         this.name = name;
25     }
26
27     public String JavaDoc getText() {
28         return text;
29     }
30
31     public void setText(String JavaDoc text) {
32         this.text = text;
33     }
34
35 }
36
Popular Tags