Usage of the Hibernate @LazyCollection Annotation Article by Abdallah Sawan

This commit is contained in:
AbdallahSawan 2021-02-16 15:48:06 +02:00
parent 5586a74acd
commit 342730c4a9
1 changed files with 1 additions and 1 deletions

View File

@ -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() {