Uploaded image for project: 'Cayenne'
  1. Cayenne
  2. CAY-1656

cayenne generate extra data in xml model when change dataNode factory

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 3.1M3
    • 3.1B1
    • None
    • None

    Description

      when change some time node factory we will get extra data (dates for 2 factory)

      for example:

      <node name="db"
      factory="org.apache.cayenne.configuration.server.JNDIDataSourceFactory"
      parameters="jdbc/contentdb"
      schema-update-strategy="org.apache.cayenne.access.dbsync.SkipSchemaUpdateStrategy"
      >

      <data-source>
      <driver value="org.apache.derby.jdbc.EmbeddedDriver"/>
      <url value="jdbc:derby:/Users/andrus/work/com.objectstyle/site_v2_custom/db/derby;create=true"/>
      <connectionPool min="1" max="1"/>
      <login/>
      </data-source>
      </node>

      here we need only parameters="jdbc/contentdb" (because factory="org.apache.cayenne.configuration.server.JNDIDataSourceFactory") and don't need <data-source> block

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            cayenne_olga Olga Tkacheva
            cayenne_olga Olga Tkacheva
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment