Follow up #3173 - Change BeanSet clear() to lazy load ALL properties

To avoid the 1+N lazy loading queries that are invoked due to the clear()
when the entity bean in the Set has a hashCode/equals implementation
This commit is contained in:
Rob Bygrave
2023-08-29 21:20:19 +12:00
parent 4b9d4d0a90
commit 5377454476
2 changed files with 3 additions and 5 deletions
@@ -119,7 +119,7 @@ public final class BeanSet<E> extends AbstractBeanCollection<E> implements Set<E
try {
if (set == null) {
if (!disableLazyLoad && modifyListening) {
lazyLoadCollection(true);
lazyLoadCollection(false);
} else {
set = new LinkedHashSet<>();
}