I have Settlement entity
Settlement
@Entity @Table(name = \"settlement\") public class Settlement { @ManyToOne @JoinColumn(name = \"subscription_x
I found the solution, the problem was in Annotation @org.springframework.data.annotation.Transient once I changed to @javax.persistence.Transient it worked fine.
@org.springframework.data.annotation.Transient