Hello,
Is it possible to somehow use explicit polymorphism on a joined-subclass?
I have a hierarchy with a base class Image and joined-subclasses InternalImage and ExternalImage (i.e. three tables). The InternalImage class (and table) has a binary with image data. I want to use the explicit polymorphism trick so I can update the other information in the InternalImage class without loading the binary. According to the Lightweight pattern in the patterns section, I would need to split the InternalImage class in two, with the subclass containing the binary property and then set the "upper" lightweight class to polymorphism=explicit.
The problem is that InternalImage is a joined-subclass and explicit polymorphism can only be set on <class>.
Does anyone know a way around this limitation?
|