What is not clear to me is how you want to initialize the property?
Is the value in the database, or is it just another object property?
If the latest is the answer you just don't need to map the property.

Regards,
Pedro

On May 25, 4:57 pm, Dave McGlade <[email protected]> wrote:
> As a new NHibernate user, I've been carrying out some tests that have
> led me to want a property that should not be persisted.  Simply not
> naming the column in the HBM.XML files isn't enough because NHibernate
> finds the Property by reflection. Using insert=false/update=false
> isn't enough because that still wants to read the value from the
> database.  Declaring the property as virtual does work, but I don't
> like it because virtual has semantic implications and so I can't
> guarantee we could always use that approach.
>
> So what is the best way of marking a property as 'to be ignored for
> persistance?

-- 
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