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

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

      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.

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

                Created:
                Updated:
                Resolved: