Results 1 to 3 of 3

Thread: Inheritance

  1. #1
    Join Date
    Nov 2008
    Location
    Swansea, Wales
    Posts
    202

    Lightbulb 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. #2
    Join Date
    Aug 2004
    Location
    Sydney, Australia
    Posts
    2,768

    Default

    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.
    Ben Alex
    Project Founder, Spring UAA, Spring Roo and Spring Security

  3. #3
    Join Date
    Nov 2008
    Location
    Swansea, Wales
    Posts
    202

    Default

    Ahhh brilliant I missed that! Doh!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •