Uploaded image for project: 'ModeShape'
  1. ModeShape
  2. MODE-1598

Allow schema.cnd file to be specified in repository configuration

XMLWordPrintable

    • Icon: Feature Request Feature Request
    • Resolution: Done
    • Icon: Major Major
    • 3.0.0.CR2
    • 3.0.0.Beta2
    • JCR
    • None

      ModeShape version 2.8 allowed the schema file to be specified in the repository configuration but this feature is missing in 3.0.

      It should be possible to specify the schema file in the json or jboss as7 configuration of a repository and either load the schema into the repository or check it against the schema in an existing repository (sort of like hibernate's hibernate.hbm2ddl.auto options of validate,update,create and create-drop)

      2.8 configuration file:

      <configuration xmlns:mode="http://www.modeshape.org/1.0" xmlns:jcr="http://www.jcp.org/jcr/1.0">
        <mode:repositories>
            <mode:repository jcr:name="testRepository" mode:source="testSource">
                <mode:descriptors>
                <jcr:nodeTypes>
                     <mode:resource>/jcr/schema.cnd</mode:resource>
                </jcr:nodeTypes>
            </mode:repository>
        </mode:repositories>
       ...
      </configuration>
      

              hchiorean Horia Chiorean (Inactive)
              bwallis42_jira Brian Wallis (Inactive)
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: