KickJava   Java API By Example, From Geeks To Geeks.

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


1 //$Id: User.java,v 1.2 2005/02/12 07:27:29 steveebersole Exp $
2
package org.hibernate.test.mapelemformula;
3
4
5 /**
6  * @author Gavin King
7  */

8 public class User {
9     private String JavaDoc name;
10     private String JavaDoc password;
11     User() {}
12     public User(String JavaDoc n, String JavaDoc pw) {
13         name=n;
14         password = pw;
15     }
16     public String JavaDoc getName() {
17         return name;
18     }
19     public void setName(String JavaDoc name) {
20         this.name = name;
21     }
22     public String JavaDoc getPassword() {
23         return password;
24     }
25     public void setPassword(String JavaDoc password) {
26         this.password = password;
27     }
28 }
29
Popular Tags