I guess my question is why do yo feel a need to make or change an entity for color or size when you can use the productfeatures.
gopalbi sent the following on 7/28/2008 10:34 PM: > 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 >