[ http://issues.apache.org/jira/browse/IBATISNET-105?page=all ]
Gilles Bayon closed IBATISNET-105:
----------------------------------
Fix Version: DataMapper 1.4
Resolution: Fixed
Added only Lazy load support for Strong typed collections
In SVN
> Lazy load support for Strong typed collections and single Items
> ---------------------------------------------------------------
>
> Key: IBATISNET-105
> URL: http://issues.apache.org/jira/browse/IBATISNET-105
> Project: iBatis for .NET
> Type: New Feature
> Components: DataMapper, Testing
> Reporter: David Marzo
> Assignee: Gilles Bayon
> Fix For: DataMapper 1.4
> Attachments: LazyLoad_rev04.zip, LazyLoad_rev05.zip, LazyLoad_rev06.zip
>
> Nowadays Ibatis only support lazy load for no typed (IList) collections and
> can not lazy load relationship of 0 or 1.
> Changes:
> - In IBatisNet.DataMapper.Test.NUnit.SqlMapTests.ResultMapTest
> .TestLazyWithStronglyTypedCollectionMapping()
> exist one test that end ok but its outdated and it should fail.
> - BatisNet.DataMapper.Test.Domain.Order
> Ln 22:
> Original:
> private IList _lineItems;//LineItemCollection
> Correct:
> private LineItemCollection _lineItems;
> Ln: 50
> Original:
> public IList LineItems
> Correct:
> public LineItemCollection LineItems
> {...}
>
> In the statment order-with-lines-collection add to
> LazyLoad = "true"
> <resultMap id="order-with-lines-collection" class="Order"
> extends="lite-order-result-by-name" >
> <result property="LineItems" column="Order_ID"
> select="GetLineItemsForOrderWithListClass" lazyLoad="true"/>
> </resultMap>
> -TODO add test for 0...1 relationship , ej Worker.Boss
> Attached its the files changed to implement "beta" this feature
>
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira