Announcement Announcement Module
Collapse
No announcement yet.
Can't Extend SimpleMongoRepository Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Can't Extend SimpleMongoRepository

    Howdy,

    I'm trying to "Add Custom Behavior to All Repositories" (4.2.2 of the docs) for Mongo.

    Looks like SimpleMongoRepository has no empty constructor so I need to define a constructor on my repository sub class to match:

    public SimpleMongoRepository(MongoEntityInformation<T, ID> metadata, MongoTemplate template) {
    ...

    }

    My problem is that MongoEntityInformation is not public so i cant import it into my subclass.

    Is this a bug or is this meant to work a different way?

    Thanks!

    Dave

  • #2
    Bug spotted, bug fixed: https://github.com/SpringSource/spri...8f0e11e827b2af.

    Cheers,
    Ollie

    Comment

    Working...
    X