Uploaded image for project: 'JTalks Common'
  1. JTalks Common
  2. JTALKSCOMMON-64

No field access should be in equals()

VotersWatchers
    XMLWordPrintable

    Details

      Description

      Since we use Hibernate, which in turns uses proxies, we need to trigger fields by getters, not directly access the field. Otherwise equals() always returns false if proxies are compared. So we need to change Entity#equals() to use getUuid() instead of other.uuid.

        Attachments

          Structure

            Activity

              People

              • Assignee:
                ancient_mariner Alex Lysak
                Reporter:
                ctapobep Stanislav Bashkyrtsev
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 1h
                  1h

                    Structure Helper Panel