ibatis-user-cs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Clinton Begin" <clinton.be...@gmail.com>
Subject Re: Object AS references
Date Mon, 12 May 2008 17:39:10 GMT
Yes, this is the current behavior and will continue to be for Version
2.  You can however imitate the behavior you want by enabling a cache
for that statement.

Version 3.0 has a 2 stage cache which will do this automatically, but
for now, that's the best you can do.

Clinton

On Mon, May 12, 2008 at 11:28 AM, Peter_Levin <petr.levin@gmail.com> wrote:
>
>  AS I found (may be wrong) iBatis treat objects and so instantiate them as
>  Value-object.(not refference)
>  So how can I load tree. for example:
>
>  class Some
>  {
>        string ID {get{...};set{...};}
>        Some Parent {get{...};set{...};}
>  }
>
>  I dont want Mapper or who is ressponsible for this create new Instance of
>  object for Parrent but it should use
>  the instance allready created while loading.
>  And so on. A lot of cases when I need refference, but not value.
>  Who have some sugestions - wellcome - I would say "GREAT THANKS, AMIGO"  :-)
>  --
>  View this message in context: http://www.nabble.com/Object-AS-references-tp17189888p17189888.html
>  Sent from the iBATIS - User - Cs mailing list archive at Nabble.com.
>
>

Mime
View raw message