Cayenne
  1. Cayenne
  2. CAY-1656

cayenne generate extra data in xml model when change dataNode factory

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 3.1M3
    • Fix Version/s: 3.1B1
    • Component/s: None
    • Labels:
      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

        Activity

        oltka committed 1237743 (1 file)
        Reviews: none

        CAY-1656 add note to RELEASE-NOTES about this task

        Olga Tkacheva made changes -
        Status In Progress [ 3 ] Closed [ 6 ]
        Fix Version/s 3.1M4 [ 12317958 ]
        Resolution Fixed [ 1 ]
        Hide
        Olga Tkacheva added a comment -

        fixed

        Show
        Olga Tkacheva added a comment - fixed
        Olga Tkacheva made changes -
        Status Open [ 1 ] In Progress [ 3 ]
        oltka committed 1236609 (1 file)
        Reviews: none

        CAY-1656 make sence generate property for all dataNodes with factory not XMLPoolingDataSourceFactory

        Olga Tkacheva made changes -
        Field Original Value New Value
        Summary extra data in xml model cayenne generate extra data in xml model when change dataNode factory
        oltka committed 1236573 (1 file)
        Olga Tkacheva created issue -

          People

          • Assignee:
            Olga Tkacheva
            Reporter:
            Olga Tkacheva
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development