You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This ticket came up in the context of #2165, and we think the original problem should be solved with the fix for that. Please give the snapshots a try if you manage to find the time.
odrotbohm
changed the title
Deserialize snake case JSON does not work for association fields [DATAREST-1232]
Deserialize snake case JSON does not work for association fields
Feb 21, 2023
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 :
@Entity
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)
The text was updated successfully, but these errors were encountered: