Uploaded image for project: 'Spring Data Commons'
  1. Spring Data Commons
  2. DATACMNS-180

Java transient fields should not be considered transient for persistence

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.3.1, 1.4 M1
    • Component/s: Mapping metadata
    • Labels:
      None

      Description

      AbstractPersistentProperty treats plain transient fields as transient an thus those fields will not end up being persisted which is probably not in line with what one wants to achieve by making the field transient.

      Although the Java specification says transient expresses a property shall not be serialized we actually have to as they are usually reconstituated in a readObject(…) method we cannot call and thus would not recreate the object in a state it was before persisting.

        Attachments

          Activity

            People

            • Assignee:
              olivergierke Oliver Gierke
              Reporter:
              olivergierke Oliver Gierke
              Last updater:
              Trevor Marshall
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: