Uploaded image for project: 'Spring Roo'
  1. Spring Roo
  2. ROO-292

Support @MappedSuperclass and @Inheritance when creating entities

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.0.0.RC2
    • Fix Version/s: 1.0.0.RC3
    • Component/s: PERSISTENCE
    • Labels:
      None

      Description

      It is possible to create a class hierarchy by executing the following commands:

      entity --name ~.model.AbstractEntity --abstract
      entity --name ~.model.MyEntity1 --extends ~.model.AbstractEntity
      entity --name ~.model.MyEntity2 --extends ~.model.AbstractEntity
      

      All classes are annotated by @Entity and this implies @Inheritance(strategy=InheritanceType.SINGLE_TABLE).
      In many cases this is not suitable.

      So it would be nice to have a parameter '--inheritanceStrategy' (in case '--abstract' is used, too). This could have values like 'SINGLE_TABLE', 'JOINED' or 'MAPPED_SUPERCLASS'.

        Attachments

          Activity

            People

            • Assignee:
              balex Ben Alex
              Reporter:
              tisch Tim Schmidt
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: