Announcement Announcement Module
Collapse
No announcement yet.
Inheritance Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Inheritance

    Does anyone else think that it might be useful to be able to specify whether a class is abstract and the JPA inheritance strategy to use when using the "new persistent class jpa" command? And maybe what class it extends or interfaces it implements?

  • #2
    The inheritance and abstract support is already present, as per the clinic.roo sample:

    Code:
    new persistent class jpa -name ~.domain.AbstractPerson -abstract
    new persistent class jpa -name ~.domain.Vet -extends ~.domain.AbstractPerson -testAutomatically
    Extras like specifying an interface you wish to implement should really be done within an IDE/text editor. This is because Roo wouldn't be able to implement the interface automatically.

    Comment


    • #3
      Ahhh brilliant I missed that! Doh!

      Comment

      Working...
      X