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