From every Bean I would like to derive another object, say PersistantBean with new attributes and such. If I can insert these PersistantBeans into the Model, I can generate Java classes from the Beans and different classes from PersistantBeans. Is it possible?
why do you need to physically create additional stuff if this additional stuff is only relevant for generation?
Additional objects in the model will simplify the generation. I could use the same generator templates without worrying whether a Bean does mean a simple Bean or PersistantBean in a particular context.
Well, I will try a lighter solution: create lists of modified Beans in a helper method and forward them to the generator template without inserting them into the model.