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

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Information Provided
    • 17.12.04
    • None
    • party
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: