Re: How to define ContactMech entity?

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

Re: How to define ContactMech entity?

edward wang
Hi, Folks,

>
> I looked at applications\order\entitydef\entitymode.xml file.
> there is an entry entity-name="OrderContactMech" as the following:  it has
> relationship with  rel-entity-name="ContactMech".
> But i could not find there is ContactMech entity-name defined in this file.
> Could tell me where i can find "ContactMech.
>
> thank you!
>
> chwang
>
>
>
>  <entity entity-name="OrderContactMech"
>             package-name="org.ofbiz.order.order"
>             never-cache="true"
>             title="Order Contact Mechanism Entity">
>       <field name="orderId" type="id-ne"></field>
>       <field name="contactMechPurposeTypeId" type="id-ne"></field>
>       <field name="contactMechId" type="id-ne"></field>
>       <prim-key field="orderId"/>
>       <prim-key field="contactMechPurposeTypeId"/>
>       <prim-key field="contactMechId"/>
>       <relation type="one" fk-name="ORDER_CMECH_HDR"
> rel-entity-name="OrderHeader">
>         <key-map field-name="orderId"/>
>       </relation>
>       <relation type="one" fk-name="ORDER_CMECH_CM"
> rel-entity-name="ContactMech">
>         <key-map field-name="contactMechId"/>
>       </relation>
>       <relation type="one" fk-name="ORDER_CMECH_CMPT"
> rel-entity-name="ContactMechPurposeType">
>         <key-map field-name="contactMechPurposeTypeId"/>
>       </relation>
>     </entity>
>
Reply | Threaded
Open this post in threaded view
|

Re: How to define ContactMech entity?

BJ Freeman
party instead of order

=========================
BJ Freeman
http://bjfreeman.elance.com
Strategic Power Office with Supplier Automation <http://www.businessesnetwork.com/automation/viewforum.php?f=93>
Specialtymarket.com <http://www.specialtymarket.com/>

Systems Integrator-- Glad to Assist

Chat  Y! messenger: bjfr33man
Linkedin
<http://www.linkedin.com/profile?viewProfile=&key=1237480&locale=en_US&trk=tab_pro>


chaohua wang sent the following on 5/21/2010 10:21 AM:

> Hi, Folks,
>> I looked at applications\order\entitydef\entitymode.xml file.
>> there is an entry entity-name="OrderContactMech" as the following:  it has
>> relationship with  rel-entity-name="ContactMech".
>> But i could not find there is ContactMech entity-name defined in this file.
>> Could tell me where i can find "ContactMech.
>>
>> thank you!
>>
>> chwang
>>
>>
>>
>>  <entity entity-name="OrderContactMech"
>>             package-name="org.ofbiz.order.order"
>>             never-cache="true"
>>             title="Order Contact Mechanism Entity">
>>       <field name="orderId" type="id-ne"></field>
>>       <field name="contactMechPurposeTypeId" type="id-ne"></field>
>>       <field name="contactMechId" type="id-ne"></field>
>>       <prim-key field="orderId"/>
>>       <prim-key field="contactMechPurposeTypeId"/>
>>       <prim-key field="contactMechId"/>
>>       <relation type="one" fk-name="ORDER_CMECH_HDR"
>> rel-entity-name="OrderHeader">
>>         <key-map field-name="orderId"/>
>>       </relation>
>>       <relation type="one" fk-name="ORDER_CMECH_CM"
>> rel-entity-name="ContactMech">
>>         <key-map field-name="contactMechId"/>
>>       </relation>
>>       <relation type="one" fk-name="ORDER_CMECH_CMPT"
>> rel-entity-name="ContactMechPurposeType">
>>         <key-map field-name="contactMechPurposeTypeId"/>
>>       </relation>
>>     </entity>
>>
>


Reply | Threaded
Open this post in threaded view
|

Re: How to define ContactMech entity?

BJ Freeman
In reply to this post by edward wang
a convenient way is to use webtools
https://demo-trunk.ofbiz.apache.org/webtools/control/ViewRelations?entityName=ContactMech

=========================
BJ Freeman
http://bjfreeman.elance.com
Strategic Power Office with Supplier Automation <http://www.businessesnetwork.com/automation/viewforum.php?f=93>
Specialtymarket.com <http://www.specialtymarket.com/>

Systems Integrator-- Glad to Assist

Chat  Y! messenger: bjfr33man
Linkedin
<http://www.linkedin.com/profile?viewProfile=&key=1237480&locale=en_US&trk=tab_pro>


BJ Freeman sent the following on 5/21/2010 10:33 AM:

> party instead of order
>
> =========================
> BJ Freeman
> http://bjfreeman.elance.com
> Strategic Power Office with Supplier Automation <http://www.businessesnetwork.com/automation/viewforum.php?f=93>
> Specialtymarket.com <http://www.specialtymarket.com/>
>
> Systems Integrator-- Glad to Assist
>
> Chat  Y! messenger: bjfr33man
> Linkedin
> <http://www.linkedin.com/profile?viewProfile=&key=1237480&locale=en_US&trk=tab_pro>
>
>
> chaohua wang sent the following on 5/21/2010 10:21 AM:
>> Hi, Folks,
>>> I looked at applications\order\entitydef\entitymode.xml file.
>>> there is an entry entity-name="OrderContactMech" as the following:  it has
>>> relationship with  rel-entity-name="ContactMech".
>>> But i could not find there is ContactMech entity-name defined in this file.
>>> Could tell me where i can find "ContactMech.
>>>
>>> thank you!
>>>
>>> chwang
>>>
>>>
>>>
>>>  <entity entity-name="OrderContactMech"
>>>             package-name="org.ofbiz.order.order"
>>>             never-cache="true"
>>>             title="Order Contact Mechanism Entity">
>>>       <field name="orderId" type="id-ne"></field>
>>>       <field name="contactMechPurposeTypeId" type="id-ne"></field>
>>>       <field name="contactMechId" type="id-ne"></field>
>>>       <prim-key field="orderId"/>
>>>       <prim-key field="contactMechPurposeTypeId"/>
>>>       <prim-key field="contactMechId"/>
>>>       <relation type="one" fk-name="ORDER_CMECH_HDR"
>>> rel-entity-name="OrderHeader">
>>>         <key-map field-name="orderId"/>
>>>       </relation>
>>>       <relation type="one" fk-name="ORDER_CMECH_CM"
>>> rel-entity-name="ContactMech">
>>>         <key-map field-name="contactMechId"/>
>>>       </relation>
>>>       <relation type="one" fk-name="ORDER_CMECH_CMPT"
>>> rel-entity-name="ContactMechPurposeType">
>>>         <key-map field-name="contactMechPurposeTypeId"/>
>>>       </relation>
>>>     </entity>
>>>
>
>
>


Reply | Threaded
Open this post in threaded view
|

Re: How to define ContactMech entity?

edward wang
Hi, Thank you very much,
yes, it is  in party,
i saw package name:  package-name=org.ofbiz.party.contact for ContactMech

But in order,  package-name="org.ofbiz.order.order" for OrderContactMech.

They are different package names. how do they know each other? there is some
"import" like import java package in a config file?

Chwang


On Fri, May 21, 2010 at 11:39 AM, BJ Freeman <[hidden email]> wrote:

> a convenient way is to use webtools
>
> https://demo-trunk.ofbiz.apache.org/webtools/control/ViewRelations?entityName=ContactMech
>
> =========================
> BJ Freeman
> http://bjfreeman.elance.com
> Strategic Power Office with Supplier Automation <
> http://www.businessesnetwork.com/automation/viewforum.php?f=93>
> Specialtymarket.com <http://www.specialtymarket.com/>
>
> Systems Integrator-- Glad to Assist
>
> Chat  Y! messenger: bjfr33man
> Linkedin
> <
> http://www.linkedin.com/profile?viewProfile=&key=1237480&locale=en_US&trk=tab_pro
> >
>
>
> BJ Freeman sent the following on 5/21/2010 10:33 AM:
> > party instead of order
> >
> > =========================
> > BJ Freeman
> > http://bjfreeman.elance.com
> > Strategic Power Office with Supplier Automation <
> http://www.businessesnetwork.com/automation/viewforum.php?f=93>
> > Specialtymarket.com <http://www.specialtymarket.com/>
> >
> > Systems Integrator-- Glad to Assist
> >
> > Chat  Y! messenger: bjfr33man
> > Linkedin
> > <
> http://www.linkedin.com/profile?viewProfile=&key=1237480&locale=en_US&trk=tab_pro
> >
> >
> >
> > chaohua wang sent the following on 5/21/2010 10:21 AM:
> >> Hi, Folks,
> >>> I looked at applications\order\entitydef\entitymode.xml file.
> >>> there is an entry entity-name="OrderContactMech" as the following:  it
> has
> >>> relationship with  rel-entity-name="ContactMech".
> >>> But i could not find there is ContactMech entity-name defined in this
> file.
> >>> Could tell me where i can find "ContactMech.
> >>>
> >>> thank you!
> >>>
> >>> chwang
> >>>
> >>>
> >>>
> >>>  <entity entity-name="OrderContactMech"
> >>>             package-name="org.ofbiz.order.order"
> >>>             never-cache="true"
> >>>             title="Order Contact Mechanism Entity">
> >>>       <field name="orderId" type="id-ne"></field>
> >>>       <field name="contactMechPurposeTypeId" type="id-ne"></field>
> >>>       <field name="contactMechId" type="id-ne"></field>
> >>>       <prim-key field="orderId"/>
> >>>       <prim-key field="contactMechPurposeTypeId"/>
> >>>       <prim-key field="contactMechId"/>
> >>>       <relation type="one" fk-name="ORDER_CMECH_HDR"
> >>> rel-entity-name="OrderHeader">
> >>>         <key-map field-name="orderId"/>
> >>>       </relation>
> >>>       <relation type="one" fk-name="ORDER_CMECH_CM"
> >>> rel-entity-name="ContactMech">
> >>>         <key-map field-name="contactMechId"/>
> >>>       </relation>
> >>>       <relation type="one" fk-name="ORDER_CMECH_CMPT"
> >>> rel-entity-name="ContactMechPurposeType">
> >>>         <key-map field-name="contactMechPurposeTypeId"/>
> >>>       </relation>
> >>>     </entity>
> >>>
> >
> >
> >
>
>
>
Reply | Threaded
Open this post in threaded view
|

Re: How to define ContactMech entity?

BJ Freeman
In reply to this post by BJ Freeman
if you look at the link I putup it shows the relationships

if you look at either entity in entitydef you will see
      <relation type="one" fk-name="ORDER_CMECH_CM"
rel-entity-name="ContactMech">
        <key-map field-name="contactMechId"/>
      </relation>


=========================
BJ Freeman
http://bjfreeman.elance.com
Strategic Power Office with Supplier Automation <http://www.businessesnetwork.com/automation/viewforum.php?f=93>
Specialtymarket.com <http://www.specialtymarket.com/>

Systems Integrator-- Glad to Assist

Chat  Y! messenger: bjfr33man
Linkedin
<http://www.linkedin.com/profile?viewProfile=&key=1237480&locale=en_US&trk=tab_pro>


chaohua wang sent the following on 5/21/2010 12:59 PM:

> Hi, Thank you very much,
> yes, it is  in party,
> i saw package name:  package-name=org.ofbiz.party.contact for ContactMech
>
> But in order,  package-name="org.ofbiz.order.order" for OrderContactMech.
>
> They are different package names. how do they know each other? there is some
> "import" like import java package in a config file?
>
> Chwang
>
>
> On Fri, May 21, 2010 at 11:39 AM, BJ Freeman <[hidden email]> wrote:
>
>> a convenient way is to use webtools
>>
>> https://demo-trunk.ofbiz.apache.org/webtools/control/ViewRelations?entityName=ContactMech
>>
>> =========================
>> BJ Freeman
>> http://bjfreeman.elance.com
>> Strategic Power Office with Supplier Automation <
>> http://www.businessesnetwork.com/automation/viewforum.php?f=93>
>> Specialtymarket.com <http://www.specialtymarket.com/>
>>
>> Systems Integrator-- Glad to Assist
>>
>> Chat  Y! messenger: bjfr33man
>> Linkedin
>> <
>> http://www.linkedin.com/profile?viewProfile=&key=1237480&locale=en_US&trk=tab_pro
>>
>> BJ Freeman sent the following on 5/21/2010 10:33 AM:
>>> party instead of order
>>>
>>> =========================
>>> BJ Freeman
>>> http://bjfreeman.elance.com
>>> Strategic Power Office with Supplier Automation <
>> http://www.businessesnetwork.com/automation/viewforum.php?f=93>
>>> Specialtymarket.com <http://www.specialtymarket.com/>
>>>
>>> Systems Integrator-- Glad to Assist
>>>
>>> Chat  Y! messenger: bjfr33man
>>> Linkedin
>>> <
>> http://www.linkedin.com/profile?viewProfile=&key=1237480&locale=en_US&trk=tab_pro
>>>
>>>
>>> chaohua wang sent the following on 5/21/2010 10:21 AM:
>>>> Hi, Folks,
>>>>> I looked at applications\order\entitydef\entitymode.xml file.
>>>>> there is an entry entity-name="OrderContactMech" as the following:  it
>> has
>>>>> relationship with  rel-entity-name="ContactMech".
>>>>> But i could not find there is ContactMech entity-name defined in this
>> file.
>>>>> Could tell me where i can find "ContactMech.
>>>>>
>>>>> thank you!
>>>>>
>>>>> chwang
>>>>>
>>>>>
>>>>>
>>>>>  <entity entity-name="OrderContactMech"
>>>>>             package-name="org.ofbiz.order.order"
>>>>>             never-cache="true"
>>>>>             title="Order Contact Mechanism Entity">
>>>>>       <field name="orderId" type="id-ne"></field>
>>>>>       <field name="contactMechPurposeTypeId" type="id-ne"></field>
>>>>>       <field name="contactMechId" type="id-ne"></field>
>>>>>       <prim-key field="orderId"/>
>>>>>       <prim-key field="contactMechPurposeTypeId"/>
>>>>>       <prim-key field="contactMechId"/>
>>>>>       <relation type="one" fk-name="ORDER_CMECH_HDR"
>>>>> rel-entity-name="OrderHeader">
>>>>>         <key-map field-name="orderId"/>
>>>>>       </relation>
>>>>>       <relation type="one" fk-name="ORDER_CMECH_CM"
>>>>> rel-entity-name="ContactMech">
>>>>>         <key-map field-name="contactMechId"/>
>>>>>       </relation>
>>>>>       <relation type="one" fk-name="ORDER_CMECH_CMPT"
>>>>> rel-entity-name="ContactMechPurposeType">
>>>>>         <key-map field-name="contactMechPurposeTypeId"/>
>>>>>       </relation>
>>>>>     </entity>
>>>>>
>>>
>>>
>>
>>
>


Reply | Threaded
Open this post in threaded view
|

Re: How to define ContactMech entity?

edward wang
Thank you very much!

Chwang

On Fri, May 21, 2010 at 3:13 PM, BJ Freeman <[hidden email]> wrote:

> if you look at the link I putup it shows the relationships
>
> if you look at either entity in entitydef you will see
>       <relation type="one" fk-name="ORDER_CMECH_CM"
> rel-entity-name="ContactMech">
>        <key-map field-name="contactMechId"/>
>      </relation>
>
>
> =========================
> BJ Freeman
> http://bjfreeman.elance.com
> Strategic Power Office with Supplier Automation <
> http://www.businessesnetwork.com/automation/viewforum.php?f=93>
> Specialtymarket.com <http://www.specialtymarket.com/>
>
> Systems Integrator-- Glad to Assist
>
> Chat  Y! messenger: bjfr33man
> Linkedin
> <
> http://www.linkedin.com/profile?viewProfile=&key=1237480&locale=en_US&trk=tab_pro
> >
>
>
> chaohua wang sent the following on 5/21/2010 12:59 PM:
> > Hi, Thank you very much,
> > yes, it is  in party,
> > i saw package name:  package-name=org.ofbiz.party.contact for ContactMech
> >
> > But in order,  package-name="org.ofbiz.order.order" for OrderContactMech.
> >
> > They are different package names. how do they know each other? there is
> some
> > "import" like import java package in a config file?
> >
> > Chwang
> >
> >
> > On Fri, May 21, 2010 at 11:39 AM, BJ Freeman <[hidden email]>
> wrote:
> >
> >> a convenient way is to use webtools
> >>
> >>
> https://demo-trunk.ofbiz.apache.org/webtools/control/ViewRelations?entityName=ContactMech
> >>
> >> =========================
> >> BJ Freeman
> >> http://bjfreeman.elance.com
> >> Strategic Power Office with Supplier Automation <
> >> http://www.businessesnetwork.com/automation/viewforum.php?f=93>
> >> Specialtymarket.com <http://www.specialtymarket.com/>
> >>
> >> Systems Integrator-- Glad to Assist
> >>
> >> Chat  Y! messenger: bjfr33man
> >> Linkedin
> >> <
> >>
> http://www.linkedin.com/profile?viewProfile=&key=1237480&locale=en_US&trk=tab_pro
> >>
> >> BJ Freeman sent the following on 5/21/2010 10:33 AM:
> >>> party instead of order
> >>>
> >>> =========================
> >>> BJ Freeman
> >>> http://bjfreeman.elance.com
> >>> Strategic Power Office with Supplier Automation <
> >> http://www.businessesnetwork.com/automation/viewforum.php?f=93>
> >>> Specialtymarket.com <http://www.specialtymarket.com/>
> >>>
> >>> Systems Integrator-- Glad to Assist
> >>>
> >>> Chat  Y! messenger: bjfr33man
> >>> Linkedin
> >>> <
> >>
> http://www.linkedin.com/profile?viewProfile=&key=1237480&locale=en_US&trk=tab_pro
> >>>
> >>>
> >>> chaohua wang sent the following on 5/21/2010 10:21 AM:
> >>>> Hi, Folks,
> >>>>> I looked at applications\order\entitydef\entitymode.xml file.
> >>>>> there is an entry entity-name="OrderContactMech" as the following:
>  it
> >> has
> >>>>> relationship with  rel-entity-name="ContactMech".
> >>>>> But i could not find there is ContactMech entity-name defined in this
> >> file.
> >>>>> Could tell me where i can find "ContactMech.
> >>>>>
> >>>>> thank you!
> >>>>>
> >>>>> chwang
> >>>>>
> >>>>>
> >>>>>
> >>>>>  <entity entity-name="OrderContactMech"
> >>>>>             package-name="org.ofbiz.order.order"
> >>>>>             never-cache="true"
> >>>>>             title="Order Contact Mechanism Entity">
> >>>>>       <field name="orderId" type="id-ne"></field>
> >>>>>       <field name="contactMechPurposeTypeId" type="id-ne"></field>
> >>>>>       <field name="contactMechId" type="id-ne"></field>
> >>>>>       <prim-key field="orderId"/>
> >>>>>       <prim-key field="contactMechPurposeTypeId"/>
> >>>>>       <prim-key field="contactMechId"/>
> >>>>>       <relation type="one" fk-name="ORDER_CMECH_HDR"
> >>>>> rel-entity-name="OrderHeader">
> >>>>>         <key-map field-name="orderId"/>
> >>>>>       </relation>
> >>>>>       <relation type="one" fk-name="ORDER_CMECH_CM"
> >>>>> rel-entity-name="ContactMech">
> >>>>>         <key-map field-name="contactMechId"/>
> >>>>>       </relation>
> >>>>>       <relation type="one" fk-name="ORDER_CMECH_CMPT"
> >>>>> rel-entity-name="ContactMechPurposeType">
> >>>>>         <key-map field-name="contactMechPurposeTypeId"/>
> >>>>>       </relation>
> >>>>>     </entity>
> >>>>>
> >>>
> >>>
> >>
> >>
> >
>
>
>