Hello,
My programm uses to Oracle database and I have a big problem on the
column mapping In last version of Ibatis : the column mapping is changed
in the method Build of the class ReaderAutoMapper (in the file
ReaderAutMapper.cs)
public static ResultPropertyCollection Build(DataExchangeFactory
dataExchangeFactory,
IDataReader reader,
ref object resultObject)
.............
Now:
----------------------------------------------
ISetAccessor setAccessor =
setAccessorFactory.CreateSetAccessor(targetType, membersName[i]);
propertyMap.Add(membersName[i], setAccessor);
--------------------------------------------
Before:
----------------------------------------------------
ISetAccessor setAccessor =
setAccessorFactory.CreateSetAccessor(targetType, membersName[i]);
propertyMap.Add(membersName[i].ToUpper(),
setAccessor);
----------------------------------------------------
As there is no more ToUpper, the mapping is now sensitive case . In Oracle
all columns are Upper case so my program does not work any more since the
last Ibatis version.
For information , In the documentation:
http://ibatis.apache.org/docs/dotnet/datamapper/ch03s05.html#id383220 ,
chapter Example 3.39. A Mapped Statement using column alaising instead of
a Result Map :
it is writtent that : "When iBATIS tries to match property and column, the
heurstic is case-insensitive ...
Could somebody tell me whether this is a bug that would be fixed?
Or this is an improvement and so there won't be no changes?
Thanks advance for any information.
Regards,
Nam
This message and any attachments (the "message") is
intended solely for the addressees and is confidential.
If you receive this message in error, please delete it and
immediately notify the sender. Any use not in accord with
its purpose, any dissemination or disclosure, either whole
or partial, is prohibited except formal approval. The internet
can not guarantee the integrity of this message.
BNP PARIBAS (and its subsidiaries) shall (will) not
therefore be liable for the message if modified.
---------------------------------------------
Ce message et toutes les pieces jointes (ci-apres le
"message") sont etablis a l'intention exclusive de ses
destinataires et sont confidentiels. Si vous recevez ce
message par erreur, merci de le detruire et d'en avertir
immediatement l'expediteur. Toute utilisation de ce
message non conforme a sa destination, toute diffusion
ou toute publication, totale ou partielle, est interdite, sauf
autorisation expresse. L'internet ne permettant pas
d'assurer l'integrite de ce message, BNP PARIBAS (et ses
filiales) decline(nt) toute responsabilite au titre de ce
message, dans l'hypothese ou il aurait ete modifie.