KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > hibernate > test > legacy > BasicNameable


1 //$Id: BasicNameable.java,v 1.1 2004/09/26 05:18:24 oneovthafew Exp $
2
package org.hibernate.test.legacy;
3
4 /**
5  * @author administrator
6  *
7  *
8  */

9 public class BasicNameable implements Nameable {
10     
11     private String JavaDoc name;
12     private Long JavaDoc id;
13     
14     /**
15      * @see Nameable#getName()
16      */

17     public String JavaDoc getName() {
18         return name;
19     }
20     
21     /**
22      * @see Nameable#setName()
23      */

24     public void setName(String JavaDoc n) {
25         name = n;
26     }
27     
28     /**
29      * @see Nameable#getKey()
30      */

31     public Long JavaDoc getKey() {
32         return id;
33     }
34     
35     /**
36      * @see Nameable#setKey()
37      */

38     public void setKey(Long JavaDoc k) {
39         id = k;
40     }
41     
42 }
43
44
45
46
47
48
49
Popular Tags