KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > triactive > jdo > test > Department


1 package com.triactive.jdo.test;
2
3
4 public class Department
5 {
6     private Manager manager;
7     private String JavaDoc name;
8
9     /**
10      * Default constructor required since this is a PersistenceCapable class.
11      */

12     protected Department() {}
13
14     public Department(String JavaDoc name)
15     {
16         this.name = name;
17     }
18
19     public void setManager(Manager mgr)
20     {
21         this.manager = mgr;
22     }
23
24
25     public Manager getManager()
26     {
27         return this.manager;
28     }
29
30     public String JavaDoc getName()
31     {
32         return this.name;
33     }
34
35     public void setName(String JavaDoc name)
36     {
37         this.name = name;
38     }
39
40 }
41
Popular Tags