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

Deserialize snake case JSON does not work for association fields [DATAREST-1232] #1591

spring-projects-issues opened this issue Apr 14, 2018 · 0 comments


Copy link

@spring-projects-issues spring-projects-issues commented Apr 14, 2018

Julien Roy opened DATAREST-1232 and commented

When POST / PUT / PATCH entity that contains association field in snake case Json format, the association field is not mapped.

I think is due to an issue in PersistentEntityJackson2Module#AssociationUriResolvingDeserializerModifier class.

JSON body sample :

{ "first_name" : "Bilbo", "grand_father" : "/persons/1"}

Entity sample :

public class Person {
@Id @GeneratedValue private Long id;
private String firstName;
@ManyToOne private Person grandFather;

Pull request proposed here : #291

Affects: 3.0.6 (Kay SR6)

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

No branches or pull requests

2 participants