Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Transient properties in JSON should be included in merge [DATAREST-937] #1307

spring-projects-issues opened this issue Nov 11, 2016 · 0 comments
type: bug


Copy link

@spring-projects-issues spring-projects-issues commented Nov 11, 2016

Craig opened DATAREST-937 and commented

When using the repository domain object update end point (via the PATCH method with JSON data), fields that are not persisted (marked as @Transient or simply not marked for persistence) are not updated.

For example, given this class:

@JsonAutoDetect(fieldVisibility = Visibility.ANY)
static class SampleWithTransient {

	String name; String temporary;

if an HTTP PATCH is done to update that object with this request body:

  "temporary": "new temp"

the result will be that the value of temporary was not changed to "new temp" as expected

Affects: 2.6 M1 (Ingalls), 2.5.4 (Hopper SR4), 2.4.6 (Gosling SR6)

Referenced from: pull request #240

Backported to: 2.6 RC1 (Ingalls), 2.5.6 (Hopper SR6), 2.4.7 (Gosling SR7)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
type: bug
None yet

No branches or pull requests

2 participants