here is a more clear example:

https://nhibernate.jira.com/secure/attachment/14077/NH-2873.zip

See comments on:
https://nhibernate.jira.com/browse/NH-2873?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel

But check this project out. Set lazy to true => everything fails (but
one test)
<!--To fix the tests: just uncomment this and comment the one below
this => differnce: lazy=false must be true-->
    <!--<property name="NickName" length="25" type="string"
column="nickname" access="property" lazy="false" />-->
    <property name="NickName" length="25" type="string"
column="nickname" access="property" lazy="true" />

Related issue? Could be... Maybe i was mis-using the lazy auto
properties... and came to a bug... Maybe this is the same issue, but
now correctly mapped?

On Sep 10, 3:35 pm, Nexus <[email protected]> wrote:
> First of all i looked in the contributed test, i do not understand
> what your test is trying to prove, you are working with lazy
> properties there, what you are not doing here.
>
> First of all i tried the nullpattern for the following class
>
> internal class Person
>     {
>         private Name name;
>
>         protected Person()
>         {
>         }
>
>         public Person(Name name)
>             : this()
>         {
>             this.name = name;
>         }
>
>         public virtual Guid Id { get; set; }
>
>         public virtual Name Name
>         {
>             get { return name = name ?? new Name(); }
>         }
>     }
>
>     internal class Name
>     {
>         public string Firstname { get; set; }
>         public string Lastname { get; set; }
>     }
>
> This worked without even giving an itch, so i really do not understand
> what is the problem here.
>
> If you do work with lazy properties be warned that even the
> proxyvalidator will give you errors when trying to compile mappings
> for not an auto property !!!, so the test you supplied is very very
> strange
>
> I think we need a clearer example before we can understand what is
> going on.
>
> Nexus

-- 
You received this message because you are subscribed to the Google Groups 
"nhusers" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/nhusers?hl=en.

Reply via email to