Announcement Announcement Module
Collapse
No announcement yet.
Can I create a entity inherited from another in Roo-Shell? Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Can I create a entity inherited from another in Roo-Shell?

    Hi All,

    I created a entity (e.g. User), and would like to create another entity (e.g. Manager) which inherited from User.

    How can I do this in Roo?

    If Roo does not support it, how to create a Controller for the sub-entity?

    thanks for you reply!

  • #2
    The "entity" command allows you to specify a --extends option. See http://static.springsource.org/sprin...d-index-entity for details. Also take a look in the clinic.roo sample, as there's an AbstractPerson which has a Vet and Owner subclass.

    Comment

    Working...
    X