You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jdo-commits@db.apache.org by cl...@apache.org on 2005/05/27 23:39:12 UTC
svn commit: r178823 -
/incubator/jdo/trunk/tck20/test/java/org/apache/jdo/tck/pc/company/Employee.java
Author: clr
Date: Fri May 27 14:39:10 2005
New Revision: 178823
URL: http://svn.apache.org/viewcvs?rev=178823&view=rev
Log:
added accessors for protege and hradvisor
Modified:
incubator/jdo/trunk/tck20/test/java/org/apache/jdo/tck/pc/company/Employee.java
Modified: incubator/jdo/trunk/tck20/test/java/org/apache/jdo/tck/pc/company/Employee.java
URL: http://svn.apache.org/viewcvs/incubator/jdo/trunk/tck20/test/java/org/apache/jdo/tck/pc/company/Employee.java?rev=178823&r1=178822&r2=178823&view=diff
==============================================================================
--- incubator/jdo/trunk/tck20/test/java/org/apache/jdo/tck/pc/company/Employee.java (original)
+++ incubator/jdo/trunk/tck20/test/java/org/apache/jdo/tck/pc/company/Employee.java Fri May 27 14:39:10 2005
@@ -310,6 +310,18 @@
return mentor;
}
+ /* This setter is required by the SpringFramework
+ used with the CompletenessTest */
+ /**
+ * Set the protege for this employee and also set the inverse mentor
+ * relationship.
+ * @param protege The protege for this employee.
+ */
+ public void setProtege(Employee protege) {
+ this.protege = protege;
+ protege.mentor = this;
+ }
+
/**
* Get the protege of this employee.
* @return The protege of this employee.
@@ -317,6 +329,17 @@
public Employee getProtege() {
return protege;
}
+
+ /* This setter is required by the SpringFramework
+ used with the CompletenessTest */
+ /**
+ * Set the HR advisor for this employee.
+ * @param hradvisor The hradvisor for this employee.
+ */
+ public void setHradvisor(Employee hradvisor) {
+ this.hradvisor = hradvisor;
+ }
+
/**
* Get the HR advisor for the employee.