[JAVA-2306] Removed unnecessary Bar field in Foo class

This commit is contained in:
fdpro 2020-09-01 20:15:58 +02:00
parent 16f3fdd81b
commit 285890231d
1 changed files with 0 additions and 13 deletions

View File

@ -30,18 +30,6 @@ public class Foo implements Serializable {
@Column(name = "NAME")
private String name;
@ManyToOne(targetEntity = Bar.class, fetch = FetchType.EAGER)
@JoinColumn(name = "BAR_ID")
private Bar bar;
public Bar getBar() {
return bar;
}
public void setBar(final Bar bar) {
this.bar = bar;
}
public Long getId() {
return id;
}
@ -89,5 +77,4 @@ public class Foo implements Serializable {
builder.append("Foo [name=").append(name).append("]");
return builder.toString();
}
}