Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

XSD incorrectly states the default value for the mongo-ref attribute of the mongo:db-factory configuration element [DATAMONGO-456] #1393

Closed
spring-projects-issues opened this issue Jun 1, 2012 · 0 comments
Assignees
Labels
type: documentation A documentation update type: enhancement A general enhancement
Milestone

Comments

@spring-projects-issues
Copy link

Matt Senter opened DATAMONGO-456 and commented

There is a disconnect between the full Spring Mongo documentation and spring-mongo-1.0.xsd (also spring-mongo-1.1.xsd.) Essentially, the XSD says that when declaring a <mongo:db-factory> element, the default value for the mongo-ref attribute is mongo, implying that if you declare no mongo-ref attribute, the configuration will reference any existing <mongo:mongo /> element for further configuration of mongo. However, that is not the case. As the full documentation states, you must declare this mongo-ref if you want to use another mongo instance (with advanced options for example) instead of the one configured by <mongo:db-factory />.

tl;dr - The XSD description of the db-factory element should be changed from "The reference to a Mongo. Will default to mongo." to something more accurate, such as "The reference to a Mongo. Set this value if you need to create a more advanced Mongo beyond the capabilities of the db-factory element." =)


Affects: 1.0.1, 1.1 M1

Referenced from: commits 3661b29, 4ca16f8

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: documentation A documentation update type: enhancement A general enhancement
Projects
None yet
Development

No branches or pull requests

2 participants