Uploaded image for project: 'OFBiz'
  1. OFBiz
  2. OFBIZ-11998

Demo Data in conflict with Entity Unique Index when loading data during creation

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Information Provided
    • Affects Version/s: 17.12.04
    • Fix Version/s: None
    • Component/s: party
    • Labels:
    • Environment:

      Win10, Java JDK1.8, MSSQL.

      Description

      In party-entitymodel.xml line nr. 2,814 the following is defined:

       <index name="CARD_ID_IDX" unique="true">

            <index-field name="cardId"/>

      </index>

      which goes against with the following code in applications\securityext\data\UserDemoData.xml.

      <Person partyId="NA"/>.

      This would cause inserting records into Entity Person failing because the field CARD_ID should not be identical in this case.

      Therefore it's suggested to change the party-entitymodel.xml from :

       <index name="CARD_ID_IDX" unique="true">

            <index-field name="cardId"/>

      </index>

      to

       <index name="CARD_ID_IDX">

            <index-field name="cardId"/>

      </index>

        Attachments

          Activity

            People

            • Assignee:
              jleroux Jacques Le Roux
              Reporter:
              Schumann Schumann Ye
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: