<insert id="CreateNewPaymentLog" parameterClass="PaymentLog" resultMap="PaymentLogMap">
INSERT INTO PaymentLogs(AddsConfirmationNumber, AddsError, Amount, EntryDateTime, FullAccountNumber, ShortAccountNumber,
PaymentAuthCode, PaymentAuthResponse, PaymentAvsCode, PaymentCvv2Code, PaymentError, PaymentOrderId,
PaymentReferenceNumber, PaymentStatusCode, PaymentStatusDescription, TransactionId)
VALUES (#AddsConfirmationNumber:int:-1#, #AddsError#, #Amount#, #EntryDateTime:DateTime:0001-01-01T00:00:00#, #FullAccountNumber#, #ShortAccountNumber#,
  ; #PaymentAuthCode#, #PaymentAuthResponse#, #PaymentAvsCode#, #PaymentCvv2Code#, #PaymentError#, #PaymentOrderId#,
#PaymentReferenceNumber#, #PaymentStatusCode#, #PaymentStatusDescription#, #TransactionId:Guid:00000000-0000-0000-0000-000000000000#)
<selectKey resultClass="int" type="post" property="Id">SELECT LAST_INSERT_ID()</selectKey>
</insert>
I'm trying to specify null replacement values on the properties, but when I include the inline null replacement parameters I get the following error at the IBatisNet.DataMapper.Mapper.Instance() call in my class.:
An unhandled exception of type 'IBatisNet.Common.Exceptions.ConfigurationException' occurred in ibatisnet.datamapper.dll
Additional information:
- The error occurre d while loading SqlMap.
- Check the parameter mapping typeHandler attribute '' (must be a ITypeHandlerCallback implementation).
- The error occurred in <sqlMap resource="${root}DataMaps/PaymentLog.xml" xmlns="http://ibatis.apache.org/dataMapper" />.
- Check the CreateNewPaymentLog.
I've been fighting this for several hours now and really could use another set of eyes to look at it and point out my error. :-)
Thanks,
Shawn.
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com

