Husband.java
package com.example.demo.com.example.domain; import lombok.Data; import lombok.EqualsAndHashCode; import lombok.NoArgsConstruc
You Should use @JsonBackReference with owning entity and @JsonManagedReference with child containing entity classes.
@JsonManagedReference @Onetoone private Queue queues; @Onetoone @JoinColumn(name = "qid") // @JsonIgnore @JsonBackReference private Queue_group queue_group;