Specifies how Genome should map Boolean values to the database.
This feature modifies the mapping of bool globally in the whole schema, meaning that all bool fields of the business classes that are mapped as PersistentField will be affected.
The db-true-value and db-false-value should differ.
Mapping all boolean persistent fields of the business classes as char(1) with the values 'Y' and 'N' respectively:
<?xml version="1.0" ?>
<Mapping xmlns="urn:TechTalk:TT.OODAL.XmlMapping">
<Using namespace="System" />
<Using namespace="TechTalk.Genome" />
<Using namespace="TechTalk.Genome.Mapping" />
<Using namespace="TechTalk.Genome.Schema.Builder.Xml" />
<Using namespace="MyBusiness" />
<Type name="bool">
<BoolMapping baseType="char" Unicode="false">
<True dbValue="Y" />
<False dbValue="N" />
</BoolMapping>
</Type>
</Mapping>