KickJava   Java API By Example, From Geeks To Geeks.

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


1 //$Id: User.java,v 1.3 2005/02/24 01:18:15 oneovthafew Exp $
2
package org.hibernate.test.hql;
3
4 import java.util.List JavaDoc;
5
6 /**
7  * @author Gavin King
8  */

9 public class User {
10     private Long JavaDoc id;
11     private String JavaDoc userName;
12     private Human human;
13     private List JavaDoc permissions;
14
15     public Long JavaDoc getId() {
16         return id;
17     }
18
19     public void setId(Long JavaDoc id) {
20         this.id = id;
21     }
22
23     public String JavaDoc getUserName() {
24         return userName;
25     }
26
27     public void setUserName(String JavaDoc userName) {
28         this.userName = userName;
29     }
30
31     public Human getHuman() {
32         return human;
33     }
34
35     public void setHuman(Human human) {
36         this.human = human;
37     }
38
39     public List JavaDoc getPermissions() {
40         return permissions;
41     }
42     
43
44     public void setPermissions(List JavaDoc permissions) {
45         this.permissions = permissions;
46     }
47     
48 }
49
Popular Tags