Uploaded image for project: 'Spring Data GemFire'
  1. Spring Data GemFire
  2. SGF-210

GemfireRepository requires that there be an attribute in the entity class for the key.

    XMLWordPrintable

Details

    Description

      The repository requires that there be an attribute in the entity class for the key, and that it must be identified by the @Id annotation. It is not unusual to put the key in the entity so that the code knows what the key is if the entity is the only object the code has access to. However, there are situations in Gemfire where the key should not be in the entity. When a key/entity pair is deserialized from the file system or via a remote call there are actually two instances of the key in memory since Gemfire doesn't know to resolve the two keys into a single instance. This can consume extra heap unnecessarily, which will probably be tenured. The repository cannot be used if the entity does not have the key.

      Attachments

        Activity

          People

            jblum John Blum
            tdalsing Tim Dalsing
            Trevor Marshall Trevor Marshall
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: