[fdo-commits] r657 - branches/3.2.x/Utilities/SchemaMgr/Src/Sm/Lp

svn_fdo at osgeo.org svn_fdo at osgeo.org
Wed Jan 24 11:53:33 EST 2007


Author: brentrobinson
Date: 2007-01-24 11:53:32 -0500 (Wed, 24 Jan 2007)
New Revision: 657

Modified:
   branches/3.2.x/Utilities/SchemaMgr/Src/Sm/Lp/ClassDefinition.cpp
Log:
Use schema-level table mapping type

Modified: branches/3.2.x/Utilities/SchemaMgr/Src/Sm/Lp/ClassDefinition.cpp
===================================================================
--- branches/3.2.x/Utilities/SchemaMgr/Src/Sm/Lp/ClassDefinition.cpp	2007-01-23 23:36:23 UTC (rev 656)
+++ branches/3.2.x/Utilities/SchemaMgr/Src/Sm/Lp/ClassDefinition.cpp	2007-01-24 16:53:32 UTC (rev 657)
@@ -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