Uploaded image for project: 'Forge'
  1. Forge
  2. FORGE-1006

Provide a command to generate equals and hashcode implementations considering all suitable fields in the JPA entity

    XMLWordPrintable

Details

    • Feature Request
    • Resolution: Done
    • Major
    • 1.4.1.Final
    • 1.3.3.Final
    • Builtin Plugins
    • None

    Description

      As a result of FORGE-995 and FORGE-1005 the generated equals and hashcode implementations for JPA entities would be typically incorrect due to reliance on the auto-generated primary key value.

      Additionally, since the equals and hashCode methods are generated only once during creation of the JPA entity class, these methods would be out of date as more fields are added (unlike the toString method). We should enhance or regenerate the existing methods as new fields are added via the field plugin.

      Attachments

        Issue Links

          Activity

            People

              vineet.reynolds_jira Vineet Reynolds (Inactive)
              vineet.reynolds_jira Vineet Reynolds (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: