Uploaded image for project: 'Crowd Data Center'
  1. Crowd Data Center
  2. CWD-4482

UserDao.removeAttribute does not keep InternalUser.attributes property up to date

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Low
    • 2.10.1
    • None
    • None
    • None

    Description

      With two way mappings of data in Hibernate, you need to add extra code to ensure that both directions of the mappings are kept up to date. Failing to do so can lead to hibernate attempting to re-save a removed object in the mapping collection, or other bad side effects.

      In this case, that means that whenever an attribute is added, updated or removed, its entry in the InternalUser.attributes set also needs to be added, updated or removed. The same goes for InternalGroup.attributes.

      Attachments

        Issue Links

          Activity

            People

              ppetrowski Patryk
              richatkins Richard Atkins
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: