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?
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?
The inheritance and abstract support is already present, as per the clinic.roo sample:
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.Code:new persistent class jpa -name ~.domain.AbstractPerson -abstract new persistent class jpa -name ~.domain.Vet -extends ~.domain.AbstractPerson -testAutomatically
Ahhh brilliant I missed that! Doh!