Skip to content

Java transient fields should not be considered transient for persistence [DATACMNS-180] #660

@spring-projects-issues

Description

@spring-projects-issues

Oliver Drotbohm opened DATACMNS-180 and commented

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:

Issue Links:

  • DATACMNS-1477 Consider Java transient fields as persistence transient
    ("is duplicated by")

Referenced from: commits 031129e, 9c42393

Metadata

Metadata

Assignees

Labels

has: design-decisionAn issue that contains a design decision about its topicstatus: invalidAn issue that we don't feel is valid

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions