on 2015 Jan 23 5:57 AM
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.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
30 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.