Jackson: @JsonIdentityInfo Object instead of id

后端 未结 3 1997
温柔的废话
温柔的废话 2021-01-12 20:36

Is there a way to influence the serialization process with @JsonIdentityInfo so that it inserts the whole object instead of referencing the id?

@Entity
@Json         


        
3条回答
  •  灰色年华
    2021-01-12 21:10

    This is the best solution I have found. With cleaning of cyclic references through @JsonIdentityInfo and the solution that is exposed now I don't have cyclical references and jackson returns the entire array of values

提交回复
热议问题