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

Templates: MongoDB repository generated finders don't support a single return type, but don't warn #22

Open
rcodesmith opened this issue Jun 4, 2013 · 1 comment
Labels

Comments

@rcodesmith
Copy link
Member

MongoDB-based generated finders don't support specifying a single object return type, but no warning or validation error is given.

@PersonDto findPersonBy(Long id);

See Advanced Tutorial - Based on findByCondition

The generated code is trying to call setUseSingleResult() on the access object, which is declared in FindByConditionAccess2, butMongoDbFindByConditionAccessImpl implements FindByConditionAccess rather than FindByConditionAccess2, and doesn't include this method.

We should either support the the setUseSingleResult() method or give a validation error.

@tjuerge tjuerge removed the 1 - Ready label Jan 9, 2016
@tavoda
Copy link
Member

tavoda commented Jul 12, 2019

Can you please clarify what you mean by "give a validation error"?

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

No branches or pull requests

3 participants