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

Support using an Abstract Entity base and providing version and id fields

    Details

    • Type: Bug
    • 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
    • Environment:
      windows/cygwin, Roo rev 359

      Description

      I created an abstract "base" entity with "id" and "version" fields. When I try to create new entity in Roo that extends this base entity, I get:

      Created SRC_MAIN_JAVA\com\abstracttest\domain\Person.java
      Undo create SRC_MAIN_JAVA\com\abstracttest\domain\Person.java
      User provided @javax.persistence.Id field but failed to provide a public 'getId()' method in 'com.abstracttest.domain.Person'
      roo>

      ...and Roo will not create the new entity.

      See forum for script and steps to reproduce.

        Attachments

          Activity

            People

            • Assignee:
              balex Ben Alex
              Reporter:
              mikej Mike J
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: