cancel
Showing results for 
Search instead for 
Did you mean: 

Not able to sync the one-many relation in product cockpit

Former Member
0 Kudos
435

I have created relation (1-n) with the product model.

 <relation code="Product2DeliverySurchargeRelation"
             autocreate="true" generate="true" localized="false">
             <sourceElement type="myProduct" qualifier="product"
                 cardinality="one">
                 <modifiers read="true" write="true" search="true"
                     optional="true" />
             </sourceElement>
             <targetElement type="DeliverySurcharge" qualifier="deliverySurcharges"
                 cardinality="many" collectiontype="list">
                 <description>Delivery surcharges for a product</description>
                 <modifiers read="true" write="true" search="true"
                     optional="true" />
             </targetElement>
         </relation>

I have already added the catalog aware specific information to item type.

 <itemtype code="DeliverySurcharge" extends="GenericItem"
                                 jaloclass="com.<qualified path>.jalo.DeliverySurcharge" autocreate="true"
                                 generate="true">
                                 <deployment table="DeliverySurcharge" typecode="23522" />
                                 <custom-properties>
                                         <property name="catalogItemType"><value>java.lang.Boolean.TRUE</value></property>
                                         <property name="catalogVersionAttributeQualifier"><value>"catalogVersion"</value></property>
                                         <property name="uniqueKeyAttributeQualifier"><value>"code"</value></property>
                                 </custom-properties>
                                 <attributes>
                                         <attribute autocreate="true" generate="true" qualifier="code"
                                                 type="java.lang.String">
                                                 <persistence type="property" />
                                                 <modifiers read="true" write="true" search="true"
                                                         optional="true" />
                                         </attribute>
 .......


But i am not able to sync via cockpit or HMC. No error logs are generated. Please assist.

View Entire Topic
0 Kudos

Hi Gaurav,

Is 'DeliverySurcharge' part of product catalog or content catalog? If this is part of content catalog, then you might need to update the relation to many-many.

Thanks, Ankit