You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ibatis.apache.org by "David Marzo (JIRA)" <ib...@incubator.apache.org> on 2005/09/08 22:52:30 UTC
[jira] Updated: (IBATISNET-105) Lazy load support for Strong typed collections and single Items
[ http://issues.apache.org/jira/browse/IBATISNET-105?page=all ]
David Marzo updated IBATISNET-105:
----------------------------------
Attachment: LazyLoad_rev03.zip
> 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
> Attachments: LazyLoad.zip, LazyLoad_rev.zip, LazyLoad_rev03.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