Announcement Announcement Module
Collapse
No announcement yet.
mongo-1.1.x does not support configuration repository with custom-impl-ref Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • 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 http://www.springframework.org/schem...-mongo-1.1.xsd

    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 http://static.springsource.org/sprin...e/html/#d0e738

    Code:
    <mongo:repositories base-package="com.example" repository-impl-postfix="CustomMongo">
        <mongo:repository id="productRepository" custom-impl-ref="productRepositoryCustomMongo" />
    </mongo:repositories>
    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.

    Comment


    • #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

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

      Comment

      Working...
      X