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

Any plans to use Spring annotations instead of indigenous ones? #9

Open
zendu opened this issue Jul 7, 2017 · 4 comments
Open

Any plans to use Spring annotations instead of indigenous ones? #9

zendu opened this issue Jul 7, 2017 · 4 comments

Comments

@zendu
Copy link

zendu commented Jul 7, 2017

I use Spring Data MongoDB in my project. Spring falls short in supporting latest features of MongoDB, so I need resort to using native MongoDB Java driver. It would be really good if there was any way to reuse existing Spring annotations instead of custom annotations specific to this library. I am sure there are other people around with similar situation. Any thoughts on it?

@dozd
Copy link
Owner

dozd commented Jul 10, 2017

Sure, it won't be a problem. I'll have a look at it and probably introduce new mongo mapper spring integration module.

@dozd
Copy link
Owner

dozd commented Jul 10, 2017

Can you please provide annotations which you would like to see working out of the box (with whole package names)? Thanks.

@zendu
Copy link
Author

zendu commented Jul 13, 2017

Following ones are most frequently used
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.data.mongodb.core.mapping.Field;

dozd pushed a commit that referenced this issue Jul 14, 2017
@dozd
Copy link
Owner

dozd commented Jul 14, 2017

Could you test latest snapshot version from master if it's working as expected?

import org.springframework.data.mongodb.core.mapping.Field; is not supported as there is no counterpart in the current state of the library.

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

No branches or pull requests

2 participants