01: package com.triactive.jdo.test;
02:
03: public class Department {
04: private Manager manager;
05: private String name;
06:
07: /**
08: * Default constructor required since this is a PersistenceCapable class.
09: */
10: protected Department() {
11: }
12:
13: public Department(String name) {
14: this .name = name;
15: }
16:
17: public void setManager(Manager mgr) {
18: this .manager = mgr;
19: }
20:
21: public Manager getManager() {
22: return this .manager;
23: }
24:
25: public String getName() {
26: return this .name;
27: }
28:
29: public void setName(String name) {
30: this.name = name;
31: }
32:
33: }
|