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

Entity remove() method has incorrect identifier field name generated

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Complete
    • Affects Version/s: 1.1.2.RELEASE
    • Fix Version/s: 1.1.3.RELEASE
    • Component/s: PERSISTENCE
    • Labels:
      None

      Description

      When a field with the same name as the @Id field is added to the governor, the @Id field in the entity ITD has its name changed by prefixing it with an underscore ("_") but the the field name referred to in the find call in the remove() method still has the un-prefixed field name. This can be fixed by simply querying the name of the current identifier field with getIdentifierField() rather than "identifierField" which is used presently

        Attachments

          Activity

            People

            Assignee:
            sschmidt Stefan Schmidt
            Reporter:
            stewarta Alan Stewart
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: