Announcement Announcement Module
No announcement yet.
mongo-1.1.x does not support configuration repository with custom-impl-ref Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • mongo-1.1.x does not support configuration repository with custom-impl-ref

    I am using spring-data-mongo 1.0.2 and when testing how it will do with version 1.1.0.M2 I was required to update the schemaLocation of my spring config to

    Ok, but this new schema appears not to support mongo:repository within mongo:repositories, there is include-filter instead. I've looked at the 1.1.x documentation and the example is there

    <mongo:repositories base-package="com.example" repository-impl-postfix="CustomMongo">
        <mongo:repository id="productRepository" custom-impl-ref="productRepositoryCustomMongo" />
    Is it a bug or does this feature goes somewhere else ?

  • #2
    That feature has been removed as it provides little benefit by letting the complexity of the namespace implementation explode. In your case the nested repository element declaration is obsolete anyway as a bean "productRepositoryCustomMongo" would be picked up for a detected ProductRepository anyway.


    • #3
      Thanks, it works but the documentation should be updated and the example removed. Does I need to open an issue on the documentation or maybe pull a change request ?

      Now I have only one line for repositories configuration

      <mongo:repositories base-package="com.example" repository-impl-postfix="CustomMongo" />
      Last edited by ludovic.praud; Jul 27th, 2012, 02:20 PM.