thanks for the answer. I ended up doing it the other way around. I generate class C and tells Middlegen that this should extend class BaseC. Class BaseC then has the additional getters/setters. BaseC is declared abstract, with one abstract method:
Code:
public abstract C getC();
Which unfortunately means that C needs to implement this method. Seems like an anti-pattern to me, where superclass knows of it's subclass, but was the only way I could get it to work. The reason for this is that I use Struts to iterate over my B-objects which iterates over my C-objects. And when iterating over my C-objects, I use the getters/setters in BaseC. If BaseC were to extend C instead, iterating over C would not give me access to the getters/setters in BaseC
cheers,
pj[/code]