You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ibatis.apache.org by "Yao jian (JIRA)" <ib...@incubator.apache.org> on 2007/05/11 07:33:15 UTC

[jira] Created: (IBATISNET-224) "lazyLoad" for single object property does not work

"lazyLoad" for single object property does not work
---------------------------------------------------

                 Key: IBATISNET-224
                 URL: https://issues.apache.org/jira/browse/IBATISNET-224
             Project: iBatis for .NET
          Issue Type: Bug
          Components: DataMapper
    Affects Versions: DataMapper 1.6.1
            Reporter: Yao jian


The "lazyLoad" attribute of the "result" element does not work when the "property" refers a single object, i.e., not a collection.

The IBatis.NET sets the object property to an object with all property values to their defaults without query them from the underline database

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (IBATISNET-224) "lazyLoad" for single object property does not work

Posted by "David Marzo (JIRA)" <ib...@incubator.apache.org>.
    [ https://issues.apache.org/jira/browse/IBATISNET-224?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12579916#action_12579916 ] 

David Marzo commented on IBATISNET-224:
---------------------------------------

Lazyload for single object property, work.

See https://issues.apache.org/jira/browse/IBATISNET-105 and https://issues.apache.org/jira/browse/IBATISNET-182)

Limitation of DynamicProxies:
     For proxies of class only intercept virtual methods because of you must declare in collections the
     method Count, GetEnumerator, RemoveAt .. as virutal, also its applicable for class that is lazy loaded

You need to define "virtual" the properties of your class.

Could you provide some test?

> "lazyLoad" for single object property does not work
> ---------------------------------------------------
>
>                 Key: IBATISNET-224
>                 URL: https://issues.apache.org/jira/browse/IBATISNET-224
>             Project: iBatis for .NET
>          Issue Type: Bug
>          Components: DataMapper
>    Affects Versions: DataMapper 1.6.1
>            Reporter: Yao jian
>
> The "lazyLoad" attribute of the "result" element does not work when the "property" refers a single object, i.e., not a collection.
> The IBatis.NET sets the object property to an object with all property values to their defaults without query them from the underline database

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Issue Comment Edited: (IBATISNET-224) "lazyLoad" for single object property does not work

Posted by "David Marzo (JIRA)" <ib...@incubator.apache.org>.
    [ https://issues.apache.org/jira/browse/IBATISNET-224?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12579916#action_12579916 ] 

d.marzo edited comment on IBATISNET-224 at 3/18/08 9:47 AM:
----------------------------------------------------------------

Lazyload for single object property, work.

See https://issues.apache.org/jira/browse/IBATISNET-105 and https://issues.apache.org/jira/browse/IBATISNET-182)

Limitation of DynamicProxies:
     For proxies of class only intercept virtual methods because of you must declare in collections the
     method Count, GetEnumerator, RemoveAt .. as virutal, also its applicable for class that is lazy loaded

You need to define "virtual" the properties of your proxyficed class.

Could you provide some test?

      was (Author: d.marzo):
    Lazyload for single object property, work.

See https://issues.apache.org/jira/browse/IBATISNET-105 and https://issues.apache.org/jira/browse/IBATISNET-182)

Limitation of DynamicProxies:
     For proxies of class only intercept virtual methods because of you must declare in collections the
     method Count, GetEnumerator, RemoveAt .. as virutal, also its applicable for class that is lazy loaded

You need to define "virtual" the properties of your class.

Could you provide some test?
  
> "lazyLoad" for single object property does not work
> ---------------------------------------------------
>
>                 Key: IBATISNET-224
>                 URL: https://issues.apache.org/jira/browse/IBATISNET-224
>             Project: iBatis for .NET
>          Issue Type: Bug
>          Components: DataMapper
>    Affects Versions: DataMapper 1.6.1
>            Reporter: Yao jian
>
> The "lazyLoad" attribute of the "result" element does not work when the "property" refers a single object, i.e., not a collection.
> The IBatis.NET sets the object property to an object with all property values to their defaults without query them from the underline database

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Closed: (IBATISNET-224) "lazyLoad" for single object property does not work

Posted by "Gilles Bayon (JIRA)" <ib...@incubator.apache.org>.
     [ https://issues.apache.org/jira/browse/IBATISNET-224?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Gilles Bayon closed IBATISNET-224.
----------------------------------

    Resolution: Cannot Reproduce
      Assignee: Gilles Bayon

> "lazyLoad" for single object property does not work
> ---------------------------------------------------
>
>                 Key: IBATISNET-224
>                 URL: https://issues.apache.org/jira/browse/IBATISNET-224
>             Project: iBatis for .NET
>          Issue Type: Bug
>          Components: DataMapper
>    Affects Versions: DataMapper 1.6.1
>            Reporter: Yao jian
>            Assignee: Gilles Bayon
>
> The "lazyLoad" attribute of the "result" element does not work when the "property" refers a single object, i.e., not a collection.
> The IBatis.NET sets the object property to an object with all property values to their defaults without query them from the underline database

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.