Pull request #289: Subselect fix

Merge in RED/persistence-service from subselect-fix to master

* commit 'a1e2a7e978119eec33f8d017edc19cae44adf86e':
  subselect fix
This commit is contained in:
Timo Bejan 2022-03-14 12:01:36 +01:00
commit a62ae464ea

View File

@ -59,17 +59,17 @@ public class TypeEntity {
@Column
private boolean addToDictionaryAction;
@Fetch(FetchMode.SELECT)
@Fetch(FetchMode.SUBSELECT)
@BatchSize(size=500)
@OneToMany(cascade = ALL, mappedBy = "type", orphanRemoval = true, fetch = FetchType.LAZY)
private List<DictionaryEntryEntity> entries = new ArrayList<>();
@Fetch(FetchMode.SELECT)
@Fetch(FetchMode.SUBSELECT)
@BatchSize(size=500)
@OneToMany(cascade = ALL, mappedBy = "type", orphanRemoval = true, fetch = FetchType.LAZY)
private List<DictionaryFalsePositiveEntryEntity> falsePositiveEntries = new ArrayList<>();
@Fetch(FetchMode.SELECT)
@Fetch(FetchMode.SUBSELECT)
@BatchSize(size=500)
@OneToMany(cascade = ALL, mappedBy = "type", orphanRemoval = true, fetch = FetchType.LAZY)
private List<DictionaryFalseRecommendationEntryEntity> falseRecommendationEntries = new ArrayList<>();