db-jdo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From c..@apache.org
Subject svn commit: r178823 - /incubator/jdo/trunk/tck20/test/java/org/apache/jdo/tck/pc/company/Employee.java
Date Fri, 27 May 2005 21:39:12 GMT
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.



Mime
View raw message