You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user-cs@ibatis.apache.org by Ross Owen <rl...@firstam.com> on 2007/02/20 19:44:22 UTC

Bug in datamapper when mapping sub object properties where the sub object type is the same as the object type

On the current beta version of iBatis.Net:
 
Bug when mapping a property on a subobject of the same type. Example: Order.OriginalOrder.OrderNumber results in setting Order.OrderNumber.
result mapping as such:
 <result property="OriginalOrder.OrderNumber" column="OriginalOrderId" select="SelectOrderNumberById"/>
IBatisNet.Common.Utilities.Objects.Members.DelegatePropertySetAccessor.Set(object, object)
 _set (line 165) uses simple set rather than complex even in complex situations - having been initialized with the line below
IBatisNet.DataMapper.Configuration.ResultMapping.ResultProperty.Initialize(ConfigurationScope, Type)
 _setAccessor (line 390) is being set to the property name, not the object.propertyname
 
Does anyone know anything about this?  Do I just try fixing it myself or is there a group that does this?
 
Thanks.
 
-Ross