Matt W
Matt W

Reputation: 6108

How can I create a base domain object with Spring Roo?

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?

Upvotes: 1

Views: 1376

Answers (1)

Ither
Ither

Reputation: 2568

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

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

Is that so?

Upvotes: 3

Related Questions