Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Spring data elasticsearch method exists..... not working as expected. #8

Open
hungbang opened this issue Mar 9, 2019 · 0 comments
Open

Comments

@hungbang
Copy link

hungbang commented Mar 9, 2019

I want to check whether the Whitelists entity is existing or not.
`
public interface WhitelistRepository extends ElasticsearchRepository<Whitelists, String> {

boolean existsByNormalizedNameAndCompanyId(String normalizedName, String companyId);

}`

Expected: The result will be boolean.
Actual: they return 1 Whitelist object instead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant