Results 1 to 2 of 2

Thread: Can't Extend SimpleMongoRepository

  1. #1
    Join Date
    Mar 2011
    Posts
    7

    Default 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. #2
    Join Date
    Apr 2006
    Location
    Dresden, Germany
    Posts
    493

    Default

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

    Cheers,
    Ollie

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •