KickJava   Java API By Example, From Geeks To Geeks.

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


1 //$Id: Name.java,v 1.4 2005/02/12 07:27:25 steveebersole Exp $
2
package org.hibernate.test.hql;
3
4 /**
5  * @author Gavin King
6  */

7 public class Name {
8     private String JavaDoc first;
9     private char initial;
10     private String JavaDoc last;
11     
12     protected Name() {}
13     
14     public Name(String JavaDoc first, char initial, String JavaDoc last) {
15         this.first = first;
16         this.initial = initial;
17         this.last = last;
18     }
19
20     public String JavaDoc getFirst() {
21         return first;
22     }
23
24     public void setFirst(String JavaDoc first) {
25         this.first = first;
26     }
27
28     public char getInitial() {
29         return initial;
30     }
31
32     public void setInitial(char initial) {
33         this.initial = initial;
34     }
35
36     public String JavaDoc getLast() {
37         return last;
38     }
39
40     public void setLast(String JavaDoc last) {
41         this.last = last;
42     }
43 }
44
Popular Tags