Usage of the Hibernate @LazyCollection Annotation Article by Abdallah Sawan
This commit is contained in:
parent
5586a74acd
commit
342730c4a9
|
@ -32,7 +32,7 @@ public class Branch {
|
||||||
|
|
||||||
@OneToMany(mappedBy = "additionalBranch")
|
@OneToMany(mappedBy = "additionalBranch")
|
||||||
@LazyCollection(LazyCollectionOption.EXTRA)
|
@LazyCollection(LazyCollectionOption.EXTRA)
|
||||||
@OrderColumn(name = "id")
|
@OrderColumn(name = "order_id")
|
||||||
private List<Employee> additionalEmployees;
|
private List<Employee> additionalEmployees;
|
||||||
|
|
||||||
public Long getId() {
|
public Long getId() {
|
||||||
|
|
Loading…
Reference in New Issue