Hi Dan, The *real* heavy lifting had already been done - by ObjectSpecification (for "isAbstract", "hasSubclasses" and the "subclasses" list).
Oooerr - I see that I was actually going the wrong way! My current tests seem somehow to all pass, but they only test half the problem. If I have a collection of (abstract) base classes, which have different subclass implementations, it currently doesn't work. It only works if the collection is of an interface. Will return to this later tonight. Anyway! Regards, Kevin On 10 Sep 2011 at 17:03, Dan Haywood wrote: > Good stuff, Kevin... that's some challenging work you've been tackling > (writing an ORM, basically ;-) > > Cheers > Dan > > > On 10 September 2011 16:40, Kevin Meyer - KMZ <[email protected]> wrote: > > > Dear all, > > > > I think I have polymorphism fully implemented on the SQL ObjectStore > > (SQL-OS). > > > > I had a bit of fun improving my understanding of how the SQL-OS > > works, and using the ObjectSpecification to determine that a class had > > subtypes, etc., and handling them. > > > > Also picked up a bug and made a few other minor improvements. > > > > I'm going to close ISIS-117 now. > > > > Regards, > > Kevin
