mongo-mapper icon indicating copy to clipboard operation
mongo-mapper copied to clipboard

Any plans to use Spring annotations instead of indigenous ones?

Open zendu opened this issue 8 years ago • 4 comments

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?

zendu avatar Jul 07 '17 14:07 zendu

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

dozd avatar Jul 10 '17 09:07 dozd

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

dozd avatar Jul 10 '17 09:07 dozd

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;

zendu avatar Jul 13 '17 21:07 zendu

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.

dozd avatar Jul 14 '17 08:07 dozd