db-jdo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mcai...@apache.org
Subject svn commit: r576977 - /db/jdo/trunk/tck2/src/java/org/apache/jdo/tck/pc/companyAnnotatedPC/
Date Tue, 18 Sep 2007 16:59:28 GMT
Author: mcaisse
Date: Tue Sep 18 09:59:27 2007
New Revision: 576977

URL: http://svn.apache.org/viewvc?rev=576977&view=rev
Log:
JDO-517 Setters no longer throw IllegalStateException; removed wrong setLastname() methods
in PC*Person.

Modified:
    db/jdo/trunk/tck2/src/java/org/apache/jdo/tck/pc/companyAnnotatedPC/PCAppAddress.java
    db/jdo/trunk/tck2/src/java/org/apache/jdo/tck/pc/companyAnnotatedPC/PCAppCompany.java
    db/jdo/trunk/tck2/src/java/org/apache/jdo/tck/pc/companyAnnotatedPC/PCAppDepartment.java
    db/jdo/trunk/tck2/src/java/org/apache/jdo/tck/pc/companyAnnotatedPC/PCAppInsurance.java
    db/jdo/trunk/tck2/src/java/org/apache/jdo/tck/pc/companyAnnotatedPC/PCAppPerson.java
    db/jdo/trunk/tck2/src/java/org/apache/jdo/tck/pc/companyAnnotatedPC/PCAppProject.java
    db/jdo/trunk/tck2/src/java/org/apache/jdo/tck/pc/companyAnnotatedPC/PCDSAddress.java
    db/jdo/trunk/tck2/src/java/org/apache/jdo/tck/pc/companyAnnotatedPC/PCDSCompany.java
    db/jdo/trunk/tck2/src/java/org/apache/jdo/tck/pc/companyAnnotatedPC/PCDSDepartment.java
    db/jdo/trunk/tck2/src/java/org/apache/jdo/tck/pc/companyAnnotatedPC/PCDSInsurance.java
    db/jdo/trunk/tck2/src/java/org/apache/jdo/tck/pc/companyAnnotatedPC/PCDSPerson.java
    db/jdo/trunk/tck2/src/java/org/apache/jdo/tck/pc/companyAnnotatedPC/PCDSProject.java

Modified: db/jdo/trunk/tck2/src/java/org/apache/jdo/tck/pc/companyAnnotatedPC/PCAppAddress.java
URL: http://svn.apache.org/viewvc/db/jdo/trunk/tck2/src/java/org/apache/jdo/tck/pc/companyAnnotatedPC/PCAppAddress.java?rev=576977&r1=576976&r2=576977&view=diff
==============================================================================
--- db/jdo/trunk/tck2/src/java/org/apache/jdo/tck/pc/companyAnnotatedPC/PCAppAddress.java
(original)
+++ db/jdo/trunk/tck2/src/java/org/apache/jdo/tck/pc/companyAnnotatedPC/PCAppAddress.java
Tue Sep 18 09:59:27 2007
@@ -81,8 +81,6 @@
      * @param id the id.
      */
     public void setAddrid(long id) {
-        if (this.addrid != 0)
-            throw new IllegalStateException("Id is already set.");
         this.addrid = id;
     }
 

Modified: db/jdo/trunk/tck2/src/java/org/apache/jdo/tck/pc/companyAnnotatedPC/PCAppCompany.java
URL: http://svn.apache.org/viewvc/db/jdo/trunk/tck2/src/java/org/apache/jdo/tck/pc/companyAnnotatedPC/PCAppCompany.java?rev=576977&r1=576976&r2=576977&view=diff
==============================================================================
--- db/jdo/trunk/tck2/src/java/org/apache/jdo/tck/pc/companyAnnotatedPC/PCAppCompany.java
(original)
+++ db/jdo/trunk/tck2/src/java/org/apache/jdo/tck/pc/companyAnnotatedPC/PCAppCompany.java
Tue Sep 18 09:59:27 2007
@@ -107,8 +107,6 @@
      * @param id the id.
      */
     public void setCompanyid(long id) {
-        if (this._companyid != 0)
-            throw new IllegalStateException("Id is already set.");
         this._companyid = id;
     }
 

Modified: db/jdo/trunk/tck2/src/java/org/apache/jdo/tck/pc/companyAnnotatedPC/PCAppDepartment.java
URL: http://svn.apache.org/viewvc/db/jdo/trunk/tck2/src/java/org/apache/jdo/tck/pc/companyAnnotatedPC/PCAppDepartment.java?rev=576977&r1=576976&r2=576977&view=diff
==============================================================================
--- db/jdo/trunk/tck2/src/java/org/apache/jdo/tck/pc/companyAnnotatedPC/PCAppDepartment.java
(original)
+++ db/jdo/trunk/tck2/src/java/org/apache/jdo/tck/pc/companyAnnotatedPC/PCAppDepartment.java
Tue Sep 18 09:59:27 2007
@@ -107,8 +107,6 @@
      * @param id the id.
      */
     public void setDeptid(long id) {
-        if (this._deptid != 0)
-            throw new IllegalStateException("Id is already set.");
         this._deptid = id;
     }
 

Modified: db/jdo/trunk/tck2/src/java/org/apache/jdo/tck/pc/companyAnnotatedPC/PCAppInsurance.java
URL: http://svn.apache.org/viewvc/db/jdo/trunk/tck2/src/java/org/apache/jdo/tck/pc/companyAnnotatedPC/PCAppInsurance.java?rev=576977&r1=576976&r2=576977&view=diff
==============================================================================
--- db/jdo/trunk/tck2/src/java/org/apache/jdo/tck/pc/companyAnnotatedPC/PCAppInsurance.java
(original)
+++ db/jdo/trunk/tck2/src/java/org/apache/jdo/tck/pc/companyAnnotatedPC/PCAppInsurance.java
Tue Sep 18 09:59:27 2007
@@ -93,8 +93,6 @@
      * @param id The insurance ID value.
      */
     public void setInsid(long id) {
-        if (this._insid != 0) 
-            throw new IllegalStateException("Id is already set.");
         this._insid = id;
     }
 

Modified: db/jdo/trunk/tck2/src/java/org/apache/jdo/tck/pc/companyAnnotatedPC/PCAppPerson.java
URL: http://svn.apache.org/viewvc/db/jdo/trunk/tck2/src/java/org/apache/jdo/tck/pc/companyAnnotatedPC/PCAppPerson.java?rev=576977&r1=576976&r2=576977&view=diff
==============================================================================
--- db/jdo/trunk/tck2/src/java/org/apache/jdo/tck/pc/companyAnnotatedPC/PCAppPerson.java (original)
+++ db/jdo/trunk/tck2/src/java/org/apache/jdo/tck/pc/companyAnnotatedPC/PCAppPerson.java Tue
Sep 18 09:59:27 2007
@@ -107,8 +107,6 @@
      * @param id the id.
      */
     public void setPersonid(long id) {
-        if (this._personid != 0)
-            throw new IllegalStateException("Id is already set.");
         this._personid = id;
     }
 
@@ -121,14 +119,6 @@
     @Column(name="PERSONID")
     public long getPersonid() {
         return _personid;
-    }
-
-    /**
-     * Set the person's id.
-     * @param personid The personid.
-     */
-    public void setLastname(long personid) {
-        this._personid = personid;
     }
 
     /**

Modified: db/jdo/trunk/tck2/src/java/org/apache/jdo/tck/pc/companyAnnotatedPC/PCAppProject.java
URL: http://svn.apache.org/viewvc/db/jdo/trunk/tck2/src/java/org/apache/jdo/tck/pc/companyAnnotatedPC/PCAppProject.java?rev=576977&r1=576976&r2=576977&view=diff
==============================================================================
--- db/jdo/trunk/tck2/src/java/org/apache/jdo/tck/pc/companyAnnotatedPC/PCAppProject.java
(original)
+++ db/jdo/trunk/tck2/src/java/org/apache/jdo/tck/pc/companyAnnotatedPC/PCAppProject.java
Tue Sep 18 09:59:27 2007
@@ -77,8 +77,6 @@
      * @param id the id.
      */
     public void setProjid(long id) {
-        if (this._projid != 0)
-            throw new IllegalStateException("Id is already set.");
         this._projid = id;
     }
 

Modified: db/jdo/trunk/tck2/src/java/org/apache/jdo/tck/pc/companyAnnotatedPC/PCDSAddress.java
URL: http://svn.apache.org/viewvc/db/jdo/trunk/tck2/src/java/org/apache/jdo/tck/pc/companyAnnotatedPC/PCDSAddress.java?rev=576977&r1=576976&r2=576977&view=diff
==============================================================================
--- db/jdo/trunk/tck2/src/java/org/apache/jdo/tck/pc/companyAnnotatedPC/PCDSAddress.java (original)
+++ db/jdo/trunk/tck2/src/java/org/apache/jdo/tck/pc/companyAnnotatedPC/PCDSAddress.java Tue
Sep 18 09:59:27 2007
@@ -80,8 +80,6 @@
      * @param id the id.
      */
     public void setAddrid(long id) {
-        if (this.addrid != 0)
-            throw new IllegalStateException("Id is already set.");
         this.addrid = id;
     }
 

Modified: db/jdo/trunk/tck2/src/java/org/apache/jdo/tck/pc/companyAnnotatedPC/PCDSCompany.java
URL: http://svn.apache.org/viewvc/db/jdo/trunk/tck2/src/java/org/apache/jdo/tck/pc/companyAnnotatedPC/PCDSCompany.java?rev=576977&r1=576976&r2=576977&view=diff
==============================================================================
--- db/jdo/trunk/tck2/src/java/org/apache/jdo/tck/pc/companyAnnotatedPC/PCDSCompany.java (original)
+++ db/jdo/trunk/tck2/src/java/org/apache/jdo/tck/pc/companyAnnotatedPC/PCDSCompany.java Tue
Sep 18 09:59:27 2007
@@ -109,8 +109,6 @@
      * @param id the id.
      */
     public void setCompanyid(long id) {
-        if (this._companyid != 0)
-            throw new IllegalStateException("Id is already set.");
         this._companyid = id;
     }
 

Modified: db/jdo/trunk/tck2/src/java/org/apache/jdo/tck/pc/companyAnnotatedPC/PCDSDepartment.java
URL: http://svn.apache.org/viewvc/db/jdo/trunk/tck2/src/java/org/apache/jdo/tck/pc/companyAnnotatedPC/PCDSDepartment.java?rev=576977&r1=576976&r2=576977&view=diff
==============================================================================
--- db/jdo/trunk/tck2/src/java/org/apache/jdo/tck/pc/companyAnnotatedPC/PCDSDepartment.java
(original)
+++ db/jdo/trunk/tck2/src/java/org/apache/jdo/tck/pc/companyAnnotatedPC/PCDSDepartment.java
Tue Sep 18 09:59:27 2007
@@ -109,8 +109,6 @@
      * @param id the id.
      */
     public void setDeptid(long id) {
-        if (this._deptid != 0)
-            throw new IllegalStateException("Id is already set.");
         this._deptid = id;
     }
 

Modified: db/jdo/trunk/tck2/src/java/org/apache/jdo/tck/pc/companyAnnotatedPC/PCDSInsurance.java
URL: http://svn.apache.org/viewvc/db/jdo/trunk/tck2/src/java/org/apache/jdo/tck/pc/companyAnnotatedPC/PCDSInsurance.java?rev=576977&r1=576976&r2=576977&view=diff
==============================================================================
--- db/jdo/trunk/tck2/src/java/org/apache/jdo/tck/pc/companyAnnotatedPC/PCDSInsurance.java
(original)
+++ db/jdo/trunk/tck2/src/java/org/apache/jdo/tck/pc/companyAnnotatedPC/PCDSInsurance.java
Tue Sep 18 09:59:27 2007
@@ -94,8 +94,6 @@
      * @param id The insurance ID value.
      */
     public void setInsid(long id) {
-        if (this._insid != 0) 
-            throw new IllegalStateException("Id is already set.");
         this._insid = id;
     }
 

Modified: db/jdo/trunk/tck2/src/java/org/apache/jdo/tck/pc/companyAnnotatedPC/PCDSPerson.java
URL: http://svn.apache.org/viewvc/db/jdo/trunk/tck2/src/java/org/apache/jdo/tck/pc/companyAnnotatedPC/PCDSPerson.java?rev=576977&r1=576976&r2=576977&view=diff
==============================================================================
--- db/jdo/trunk/tck2/src/java/org/apache/jdo/tck/pc/companyAnnotatedPC/PCDSPerson.java (original)
+++ db/jdo/trunk/tck2/src/java/org/apache/jdo/tck/pc/companyAnnotatedPC/PCDSPerson.java Tue
Sep 18 09:59:27 2007
@@ -109,8 +109,6 @@
      * @param id the id.
      */
     public void setPersonid(long id) {
-        if (this._personid != 0)
-            throw new IllegalStateException("Id is already set.");
         this._personid = id;
     }
 
@@ -122,14 +120,6 @@
     @Column(name="PERSONID")
     public long getPersonid() {
         return _personid;
-    }
-
-    /**
-     * Set the person's id.
-     * @param personid The personid.
-     */
-    public void setLastname(long personid) {
-        this._personid = personid;
     }
 
     /**

Modified: db/jdo/trunk/tck2/src/java/org/apache/jdo/tck/pc/companyAnnotatedPC/PCDSProject.java
URL: http://svn.apache.org/viewvc/db/jdo/trunk/tck2/src/java/org/apache/jdo/tck/pc/companyAnnotatedPC/PCDSProject.java?rev=576977&r1=576976&r2=576977&view=diff
==============================================================================
--- db/jdo/trunk/tck2/src/java/org/apache/jdo/tck/pc/companyAnnotatedPC/PCDSProject.java (original)
+++ db/jdo/trunk/tck2/src/java/org/apache/jdo/tck/pc/companyAnnotatedPC/PCDSProject.java Tue
Sep 18 09:59:27 2007
@@ -78,8 +78,6 @@
      * @param id the id.
      */
     public void setProjid(long id) {
-        if (this._projid != 0)
-            throw new IllegalStateException("Id is already set.");
         this._projid = id;
     }
 



Mime
View raw message