I checked the implementation of PersistentGenericBag and
AbstractPersistentCollection.
It seems that I could achieve my goal by modifying NHV.
If the collection is not NHibernateUtil.IsInitialized(value) I could
try to
make use of (value as
AbstractPersistentCollection).QueuedAdditionIterator
which will let me enumerate over transient items.

That's just an idea. I've got to test it and if it works, I'll post a
patch.

Filip Zawada

On Aug 26, 11:08 am, Filip Zawada <[email protected]> wrote:
> I'm using NHibernate Validator to perform validation. I'd like to
> call validation in the application services layer, passing an
> aggregate root. It works and traverses the graph with one exception.
>
> It does not "reach" one of the transient objects in the aggregate
> root's collection. This is happening only if the collection is lazily
> loaded, and it hasn't been enumerated yet.
>

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