[JAVA-2306] Removed unnecessary Bar field in Foo class
This commit is contained in:
parent
16f3fdd81b
commit
285890231d
|
@ -30,18 +30,6 @@ public class Foo implements Serializable {
|
||||||
@Column(name = "NAME")
|
@Column(name = "NAME")
|
||||||
private String 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() {
|
public Long getId() {
|
||||||
return id;
|
return id;
|
||||||
}
|
}
|
||||||
|
@ -89,5 +77,4 @@ public class Foo implements Serializable {
|
||||||
builder.append("Foo [name=").append(name).append("]");
|
builder.append("Foo [name=").append(name).append("]");
|
||||||
return builder.toString();
|
return builder.toString();
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue