KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > hibernate > test > orphan > Mail


1 package org.hibernate.test.orphan;
2
3 public class Mail {
4
5     private Integer JavaDoc id;
6     private String JavaDoc alias;
7     private User user;
8
9     /*package*/ Mail() {
10     }
11
12     /*package*/ Mail(String JavaDoc alias, User user) {
13         this.alias = alias;
14         this.user = user;
15     }
16
17     public Integer JavaDoc getId() {
18         return id;
19     }
20
21     protected void setId(Integer JavaDoc id) {
22         this.id = id;
23     }
24
25     public String JavaDoc getAlias() {
26         return alias;
27     }
28
29     public void setAlias(String JavaDoc alias) {
30         this.alias = alias;
31     }
32
33     public User getUser() {
34         return user;
35     }
36
37     public void setUser(User user) {
38         this.user = user;
39     }
40
41 }
42
Popular Tags