I think that in this case, it is the desired and expected behavior.
You don't lose anything by using the generic version
Person : ARBase<Person> has a Person[] FindAll()
DerivedPerson : Person has a Person[] FindAll() by default, and you can shadow that with a DerivedPerson[] FindAll()
You don't lose anything this way.
If we move to FindAll<T>(), I would need to implement casting code just to make the compiler happy in the common case.
If you want to start using inheritance with ARBase<T>, then you need to pay the price, but most entities do not have this, or can be satisfied with just using the Person FindAll() overload, etc.
On 7/12/06, hammett <[EMAIL PROTECTED]> wrote:
On 7/12/06, Ayende Rahien <[EMAIL PROTECTED]> wrote:
> Because 95% of the time, if I have complex enough types that I need deep
> inheritance, I am using NHibernate anyway.
> I'm using Active Record for projects where I have many objects, and I get
> the persistance for "free", if I have complex inheritance, I usually goes
> beyond what AR can give me.
But that's _you_, dude.
What I'm talking about here is that the way the generic version was
engineered it obstructs features that the non generic version has, are
well documented and well tested since the alpha version.
Castle is not "opinionated software". I have my judgment of the best
tool for each scenario, you have yours, other people have theirs. But
we at least need to be consistent about what we support, feature-wise,
for both runtimes. At this time we are not. And I'm glad Craig bring
that up before we released this faulty AR version.
--
Cheers,
hammett
http://hammett.castleproject.org/
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
CastleProject-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/castleproject-users
------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________ CastleProject-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/castleproject-users
