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

SpringDataMongodbQuery should be public [DATAMONGO-1514] #2425

Closed
spring-projects-issues opened this issue Oct 26, 2016 · 3 comments
Closed

SpringDataMongodbQuery should be public [DATAMONGO-1514] #2425

spring-projects-issues opened this issue Oct 26, 2016 · 3 comments
Assignees
Labels
type: bug

Comments

@spring-projects-issues
Copy link

@spring-projects-issues spring-projects-issues commented Oct 26, 2016

Dreampie opened DATAMONGO-1514 and commented

I need excute something before repository query db, but I can't build a query for current repository

QuerydslRepositorySupport support = new QuerydslRepositorySupport(mongoTemplate) {};
SpringDataMongodbQuery sdmq = support.from(SimpleEntityPathResolver.INSTANCE.createPath(eInfo.getJavaType()))
        .where(booleanBuilder), countPageRequest, eInfo.getJavaType();

SpringDataMongodbQuery is not public, and from method is protected


Backported to: 1.9.5 (Hopper SR5), 1.8.7 (Gosling SR7)

@spring-projects-issues
Copy link
Author

@spring-projects-issues spring-projects-issues commented Oct 26, 2016

Oliver Drotbohm commented

Good catch. The latter is expected though as the class is supposed to be extended and methods to be added to the extension that then have access to the protected methods

@spring-projects-issues
Copy link
Author

@spring-projects-issues spring-projects-issues commented Oct 27, 2016

Dreampie commented

Thanks,Which version will fix this?I need this class to upgrade dependency

@spring-projects-issues
Copy link
Author

@spring-projects-issues spring-projects-issues commented Oct 27, 2016

Martin Macko commented

I've created a simple PR for this: #401

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

No branches or pull requests

2 participants