On 6/30/05, Sebastien Lucas <[EMAIL PROTECTED]> wrote: > On 6/28/05, Gilles Bayon <[EMAIL PROTECTED]> wrote: > > The Java version can deal simply with this but not the .NET version (in a > > future release). > > A solution will be to use a select attribute > > <result property="..." column="..." select=".." /> > > Another is tu use a discriminator element. > > Hi Gilles, > > If I use > <result property="DriverLicense" column="DriverLicenseType" > select="DriverLicenseSelect" /> > > I guess even when DriverLicenseType is null the select will still be > made. So that's not what I want. > > I read a little about discriminator but I'm not sure if testing a > submap value for "" will be sufficient to catch null values. > > I'll test that soon. > > Thanks for your answer. > > Sébastien > > PS : Sorry Gilles it seems that I sent my first answer to you directly ;) >
Hi again, Sorry for bugging you again, I made the test with a simple <result property="DriverLicense" column="DriverLicenseType" > select="DriverLicenseSelect" /> as Gilles advised and it works perfectly. Thanks.

