views:

16

answers:

1

So I'm creating my domain objects for my Spring Roo app. I've got two similar domain objects that I'd like to inherit from a base object.

~.domain.LayerBase
~.domain.ColorLayer extends ~.domain.LayerBase
~.domain.ImageLayer extends ~.domain.LayerBase

Is there an easy way to do this in the console or do I have to do this by hand?

A: 

I think that you need is something like (From the Roo reference command index)

entity --class FirstColorLayer --extends ~.domain.FirstLayerBase ...

Is that so?

Ither
Yeah, thats it essentially. Thanks. For my implementation it would be: entity --class ~.domain.ColorLayer --extends ~.domain.LayerBase
Matt W