How to extend SimpleMongoRepository properly?

881 views
Skip to first unread message

Konstantin

unread,
Jan 29, 2013, 7:02:31 AM1/29/13
to resth...@googlegroups.com
I want to have implementation class of my interface, that extends MongoRepository.
It look like that extending SimpleMongoRepository suite best.  But what should I add to configuration and what to Inject/autowire?

Brian

unread,
Feb 6, 2013, 11:52:24 AM2/6/13
to resth...@googlegroups.com
Could you elaborate your question?
I'm not sure I totally get it, but I'll try anyway.

So you want to write a custom implementation of a MongoRepository:
- implement yourself custom methods
- use @Inject annotations and regular spring tooling in your implementation
- let spring-data implement everything else

I think you should take a look at this part of spring-data-mongodb documentation.

Let me know if I got it wrong!
Reply all
Reply to author
Forward
0 new messages