Hello friends, 

     Actually i have to add a new entity under product package that will
create a new table in ofbiz.Few field in this table totally a new one.While
saving the data in this table only those field are save while are present in
product table.like productId and description and other field are not save
like size, color. But if we put a copy of these field in the product table
then it will be save. 

Example(Condition 1) 
Entity 1 

<extend-entity entity-name="Product"> 
        <field name="productId" type="id-ne"></field> 
        <field name="description" type="description"></field> 
    </extend-entity> 
Entity 2 

<extend-entity entity-name="Xyz"> 
        <field name="productId" type="id-ne"></field> 
        <field name="description" type="description"></field> 
        <field name="coloring" type="long-varchar"></field> 
  

    </extend-entity> 
// The color field data is not saving in Xyz table only those field are save
while are present in product table 


Condition 2 
Entity 1 

<extend-entity entity-name="Product"> 
        <field name="productId" type="id-ne"></field> 
        <field name="description" type="description"></field> 
        <field name="coloring" type="long-varchar"></field> 
    </extend-entity> 
Entity 2 

<extend-entity entity-name="Xyz"> 
        <field name="productId" type="id-ne"></field> 
        <field name="description" type="description"></field> 
        <field name="coloring" type="long-varchar"></field> 
  

    </extend-entity> 
// But if we put a copy of these coloring field in the product table then it
will be save. 

But please give me a proper solution. 

Thanks & Regards: 
 Gopal 

-- 
View this message in context: 
http://www.nabble.com/Adding-a-new-entity-under-product-package---tp18705654p18705654.html
Sent from the OFBiz - User mailing list archive at Nabble.com.

Reply via email to