I have an entity Provider
and each provider has list of ProviderLanguage
@OneToMany(fetch = FetchType.EAGER)
@JoinColumn(name = PROVIDER_ID, referencedColumnName = PROVIDER_ID)
private Set<ProviderLanguage> providerLanguages;
A part of providers don't have a languages. When i write this code line
Join<Provider, Language> prLanJoin = root.join(Provider.PROVIDER_LANGUAGES)
.join(Language.LANGUAGE);
simply unused prLanJoin
variable, my search result doesn't include froviders that doesn't have languages. But how this line of code effect search result though prLanJoin
doesn't used anywhere.
When i comment this line it works as expected, at least for me)
P.S I do not use prLanJoin
join in code any more. I can simply comment this line and code will work.
Thanks.