Why does postman return the same object to me in my get request multiple times? In my OneToMany relation I have Fetch.Lazy, however when I make the request it returns the same object multiple times. Attached screenshot of the output.
Documento.java
@ManyToOne(fetch = FetchType.LAZY)
@JoinColumn(name = "pais_id", nullable = false)
private Pais pais;
Pais.java
@OneToMany(mappedBy = "pais",fetch = FetchType.LAZY)
private Set<Documento> documento;
I'm just returning a country(PAIS)