My domain thus far looks like:
~.domain.RenderJob
~.domain.RenderLayer
~.domain.ImageLayer extends ~.domain.RenderLayer
~.domain.ColorLayer extends ~.domain.RenderLayer
I'd like to add a set field to RenderJob named 'layers'. Elements in the set can be either of type ImageLayer or ColorLayer, both of which extend RenderLayer. Is there 开发者_如何学运维a way to set up the layers field so that it will accept either of the two types of layers?
well I think this will work for you
field set --fieldName layers --element ~.domain.RenderLayer --class ~.domain.RenderJob
Thanks
Shekhar
精彩评论