KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > hibernate > test > naturalid > User


1 //$Id: User.java,v 1.1 2005/05/25 01:24:22 oneovthafew Exp $
2
package org.hibernate.test.naturalid;
3
4 /**
5  * @author Gavin King
6  */

7 public class User {
8     
9     private Long JavaDoc id;
10     private String JavaDoc name;
11     private String JavaDoc org;
12     private String JavaDoc password;
13     
14     User() {}
15
16     public User(String JavaDoc name, String JavaDoc org, String JavaDoc password) {
17         this.name = name;
18         this.org = org;
19         this.password = password;
20     }
21
22     public String JavaDoc getName() {
23         return name;
24     }
25
26     public void setPassword(String JavaDoc password) {
27         this.password = password;
28     }
29
30     public String JavaDoc getOrg() {
31         return org;
32     }
33     
34 }
35
Popular Tags