entitymodel.xml oddity

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

entitymodel.xml oddity

Ron Wheeler
   In the entitymodel.xml in 13.07.01 I found this entity description with
     <relation type="one" fk-name="PARTY_ID_PRODICT"
rel-entity-name="Party">

"PARTY_ID_PRODICT" is an odd looking name.  I am not sure if this is an
error or a word that I have never seen before.


   <entity entity-name="PartyIdentification"
             package-name="org.ofbiz.party.party"
             title="Party Identification Entity">
       <field name="partyId" type="id-ne"></field>
       <field name="partyIdentificationTypeId" type="id-ne"></field>
       <field name="idValue" type="id-long"></field>
       <prim-key field="partyId"/>
       <prim-key field="partyIdentificationTypeId"/>
       <relation type="one" fk-name="PARTY_ID_TYPE"
rel-entity-name="PartyIdentificationType">
         <key-map field-name="partyIdentificationTypeId"/>
       </relation>
       <relation type="one" fk-name="PARTY_ID_PRODICT"
rel-entity-name="Party">
         <key-map field-name="partyId"/>
       </relation>
       <index name="PARTY_ID_VALIDX" unique="false">
           <index-field name="idValue"/>
       </index>
     </entity>

--
Ron Wheeler
President
Artifact Software Inc
email: [hidden email]
skype: ronaldmwheeler
phone: 866-970-2435, ext 102

Reply | Threaded
Open this post in threaded view
|

Re: entitymodel.xml oddity

Jacques Le Roux
Administrator
Hi,

I just spotted this email by chance. I agree with Ron that it's a weird name for a FK.

I suggest we fix the typo to PARTY_ID_PRODUCT, no worries (it's not used OOTB)?

Thanks

Jacques


Le 13/01/2015 à 22:03, Ron Wheeler a écrit :

>   In the entitymodel.xml in 13.07.01 I found this entity description with
>     <relation type="one" fk-name="PARTY_ID_PRODICT" rel-entity-name="Party">
>
> "PARTY_ID_PRODICT" is an odd looking name.  I am not sure if this is an error or a word that I have never seen before.
>
>
>   <entity entity-name="PartyIdentification"
>             package-name="org.ofbiz.party.party"
>             title="Party Identification Entity">
>       <field name="partyId" type="id-ne"></field>
>       <field name="partyIdentificationTypeId" type="id-ne"></field>
>       <field name="idValue" type="id-long"></field>
>       <prim-key field="partyId"/>
>       <prim-key field="partyIdentificationTypeId"/>
>       <relation type="one" fk-name="PARTY_ID_TYPE" rel-entity-name="PartyIdentificationType">
>         <key-map field-name="partyIdentificationTypeId"/>
>       </relation>
>       <relation type="one" fk-name="PARTY_ID_PRODICT" rel-entity-name="Party">
>         <key-map field-name="partyId"/>
>       </relation>
>       <index name="PARTY_ID_VALIDX" unique="false">
>           <index-field name="idValue"/>
>       </index>
>     </entity>
>