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

Question: Why not add a callback to retrieve such methods? #4593

Closed
haoqi6677 opened this issue Dec 15, 2023 · 3 comments
Closed

Question: Why not add a callback to retrieve such methods? #4593

haoqi6677 opened this issue Dec 15, 2023 · 3 comments
Labels
status: feedback-provided Feedback has been provided

Comments

@haoqi6677
Copy link

Hello, may I ask, the save method has callback, which is satisfactory and can meet the requirement, but the retrieval method does not have callback, which cannot meet the requirement of adding parameters to the document before query

@haoqi6677 haoqi6677 changed the title question: Why not add a callback to retrieve such methods? Question: Why not add a callback to retrieve such methods? Dec 15, 2023
@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Dec 15, 2023
@christophstrobl
Copy link
Member

I'm not sure if I understand the issue correctly. Maybe you can give me a bit more context. From what I read this sounds roughly like #2067.

@christophstrobl christophstrobl added status: waiting-for-feedback We need additional information before we can continue and removed status: waiting-for-triage An issue we've not yet triaged labels Dec 15, 2023
@haoqi6677
Copy link
Author

I'm not sure if I understand the issue correctly. Maybe you can give me a bit more context. From what I read this sounds roughly like #2067.

yes....It seems that the issue of multi-tenancy is still bothering me, a user of spring-data-mongo. I have searched a lot, and most of them are based on switching data sources to achieve multi-tenancy, but I think that is not elegant enough and requires too many resources. There are too many, it is unrealistic. I want to make aspects on the org.springframework.data.mongodb.core.MongoTemplate.doFind method, but it turns out that it is default modified. I want to make org.springframework.data.mongodb.repository. Query.AbstractMongoQuery.doExecute This protected modified method was rewritten to achieve the purpose of modifying Query. I found that I had to modify the factory, which was too troublesome and still couldn't be done, so I asked here. I also want to ask if it is possible. Are there any examples you can refer to? Reading the official documentation did not achieve the results I wanted

@spring-projects-issues spring-projects-issues added status: feedback-provided Feedback has been provided and removed status: waiting-for-feedback We need additional information before we can continue labels Dec 15, 2023
@haoqi6677
Copy link
Author

Temporarily use a way to achieve the goal, thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: feedback-provided Feedback has been provided
Projects
None yet
Development

No branches or pull requests

3 participants