[fdo-commits] r658 - trunk/Utilities/SchemaMgr/Src/Sm/Lp

svn_fdo at osgeo.org svn_fdo at osgeo.org
Wed Jan 24 12:48:17 EST 2007


Author: brentrobinson
Date: 2007-01-24 12:48:16 -0500 (Wed, 24 Jan 2007)
New Revision: 658

Modified:
   trunk/Utilities/SchemaMgr/Src/Sm/Lp/ClassDefinition.cpp
Log:
Merged from 3.2.x branch

Modified: trunk/Utilities/SchemaMgr/Src/Sm/Lp/ClassDefinition.cpp
===================================================================
--- trunk/Utilities/SchemaMgr/Src/Sm/Lp/ClassDefinition.cpp	2007-01-24 16:53:32 UTC (rev 657)
+++ trunk/Utilities/SchemaMgr/Src/Sm/Lp/ClassDefinition.cpp	2007-01-24 17:48:16 UTC (rev 658)
@@ -1410,6 +1410,14 @@
 void FdoSmLpClassBase::SetTableMapping( FdoSmOvTableMappingType mappingType )
 {
     mTableMapping = mappingType;
+
+    if ( mTableMapping == FdoSmOvTableMappingType_Default  ) 
+        // Default table mapping to the schema-wide one
+        mTableMapping = RefLogicalPhysicalSchema()->GetTableMapping();
+
+    // Special Case, Base table mapping is only applicable to class that has base class.
+    if ( (mTableMapping == FdoSmOvTableMappingType_BaseTable) && (mBaseClassName == L"") )
+        mTableMapping = FdoSmOvTableMappingType_ConcreteTable;
 }
 
 void FdoSmLpClassBase::SetIsDbObjectCreator( bool bCreator )



More information about the fdo-commits mailing list