Re: Criteria, Concrete Class Inheritance and multiple results.

"Fabio Maulo" <[email protected]>
Newsgroups gmane.comp.windows.dotnet.nhibernate.devel
Message-ID <[email protected]>
2008/6/7 Ayende Rahien <[email protected]>:

>
> Both are accurate, of course. And I want to be able to handle this
> correctly. For that, I need to know how many items it will return.
> I can do this for multi criteria only, sure, but that would be the wrong
> approach to take, IMO. It is not only useful there.
>
> I know that it can be a wrong approach but before change CriteriaApi,
QueryApi, with all it imply, I would like to understand how many invasive
(from the point of view of NH core code-base) is the solution taking the
modification in MultiQuery/MultiCriteria like an experiment.

If you think that the solution can be implemented with a CriteriaImpl
wrapper that use IQueryResultVisitor the solution will be zero intrusive.

Perhaps a little thing about my vision of NH future would be more useful to
understand....
We are closer to H3.2.5, than one year ago, but we still have a lot of
feature to implement and a lot of differences.
I think that we can add improvement to the standard behavior of H3.2.5 only
after we challenge the standard behavior.
The last example of this, but we have various in the NH story, was support
identity in id-bag: in NH2.0 we have a patch to work with identity+idbag;
the patch work fine but ignore the update of collection snapshot, not
support all IPostInsertIdentifierGenerator.
H3.2.5/6 don't support IPostInsertIdentifierGenerator but we do.

We have some "suspended" work to do and start something and not end it is
not so good for NH maintenance.
I know that implement new feature is more fascinating than port from H3.2
but I prefer do it after a port is close.

Feel free to start the work for MultiCriteria/MultiQuery trying to be less
intrusive as possible in IQuery/ICriteria and its implementations.
Thanks.
Fabio Maulo

P.S. One fascinating work to do, for example, will be the implementation of
all NHibernate.Intercept to support property-lazy-initialize.

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php

_______________________________________________
Nhibernate-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nhibernate-development
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.