<PlatformSpecifc> Element

Allows mappings specific to a particular database platform to be processed.

The element can be defined on the root level:

<?xml version="1.0" ?>

<Mapping xmlns="urn:TechTalk:TT.OODAL.XmlMapping">



       <Type name="type_1">

              Platform specificmappings of "type_1"



       <Type name="type_n">

              Platform specificmappings of "type_n"



       Other platform neutral mappings


Or within a type mapping:

<Type name="type">



       Platform specificmappings of "type"


       Platform neutral mappings of "type"


type: A type name.

database-platform-code1..N: The database-platform names the mapping applies to.


·    The pipe separator ("|") can be used to specify multiple platforms the mapping applies to (OR).

·    Platform codes are represented in a canonical form. A less specific code includes all the more specific platforms under it. The following platform codes are supported:

o    MsSql

§  MsSql.2000

§  MsSql.2005

o    MsSqlCe

o    Oracle

§  Oracle.9i

§  Oracle.10g

o    DB2

·    Note that MsSqlCe is not a specialisation of the MsSql platform.

·    Platform codes are case sensitive.


The following mapping is valid for all MsSql database platforms (MsSql.2000, MsSql.2005)

<PlatformSpecific platformCode=”MsSql”>

       <Member name=”ExtraField”><PersistentField /></Member>


The following mapping is valid for all MsSql and Oracle 9i database platforms

<PlatformSpecific platformCode=”MsSql|Oracle.9i”>

       <Member name=”ExtraField”><PersistentField /></Member>



Editions:Professional, Evaluation, Express

Database Platforms:Microsoft SQL Server 2000, Microsoft SQL Server 2005, Oracle 9i Release 2, Oracle 10g Release 2, IBM DB2