Revision: 3489
Author: [email protected]
Date: Mon May  3 15:55:22 2010
Log: Changed the setter name of nullability and auto increment on UserDefinedSQLType so you can get just the value on the object without looking upstream. This is so the persister can save and load the actual value in the defined type without always
overriding the upstream value.

Also changed the constructor on SQLColumn to remove the setting of properties that may have been retrieved from upstream. This again fixes some problems with persist calls causing values in the SQLColumns to be overridden.
http://code.google.com/p/power-architect/source/detail?r=3489

Modified:
/trunk/regress/ca/sqlpower/architect/swingui/TestingArchitectSwingSession.java

=======================================
--- /trunk/regress/ca/sqlpower/architect/swingui/TestingArchitectSwingSession.java Mon May 3 06:53:28 2010 +++ /trunk/regress/ca/sqlpower/architect/swingui/TestingArchitectSwingSession.java Mon May 3 15:55:22 2010
@@ -135,8 +135,8 @@
         testType1.setPrecision(platform, 1);
         testType1.setScale(platform, 1);
         testType1.setType(1);
-        testType1.setNullability(DatabaseMetaData.columnNoNulls);
-        testType1.setAutoIncrement(false);
+        testType1.setMyNullability(DatabaseMetaData.columnNoNulls);
+        testType1.setMyAutoIncrement(false);
         testType1.setPrecisionType(platform, PropertyType.VARIABLE);
         testType1.setScaleType(platform, PropertyType.VARIABLE);

@@ -145,8 +145,8 @@
         testType2.setPrecision(platform, 1);
         testType2.setScale(platform, 1);
         testType2.setType(2);
-        testType2.setNullability(DatabaseMetaData.columnNoNulls);
-        testType2.setAutoIncrement(false);
+        testType2.setMyNullability(DatabaseMetaData.columnNoNulls);
+        testType2.setMyAutoIncrement(false);
         testType2.setPrecisionType(platform, PropertyType.VARIABLE);
         testType2.setScaleType(platform, PropertyType.VARIABLE);
     }

Reply via email to