openjpa-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ppod...@apache.org
Subject svn commit: r952386 - /openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/schema/Unique.java
Date Mon, 07 Jun 2010 19:36:45 GMT
Author: ppoddar
Date: Mon Jun  7 19:36:44 2010
New Revision: 952386

URL: http://svn.apache.org/viewvc?rev=952386&view=rev
Log:
OPENJPA-1682: Remove uncessary and incorrect method from Unique

Modified:
    openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/schema/Unique.java

Modified: openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/schema/Unique.java
URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/schema/Unique.java?rev=952386&r1=952385&r2=952386&view=diff
==============================================================================
--- openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/schema/Unique.java (original)
+++ openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/schema/Unique.java Mon
Jun  7 19:36:44 2010
@@ -52,17 +52,6 @@ public class Unique
     public boolean isLogical() {
         return false;
     }
-    
-    /**
-     * Adds the given column. 
-     * The added column is set to non-nullable because a unique constraint
-     * on the database requires that its constituent columns are NOT NULL. 
-     * @see Column#setNotNull(boolean)
-     */
-    public void addColumn(Column col) {
-        super.addColumn(col);
-        col.setNotNull(true);
-    }
         
     /**
      * Set the name of the constraint. This method cannot be called if the



Mime
View raw message