on ‎2021 May 27 10:16 PM
Any One to Many example implemented by collectiontype not in relation type in hybris?
Request clarification before answering.
As a simple use case there is a one to many relation between Delivery mode and supportedPaymentTypes and implemented as a collection.
core-items.xml
<collectiontype code="PaymentModeCollection" elementtype="PaymentMode" autocreate="true" generate="false"/>
<itemtype code="PaymentMode" extends="GenericItem">
<itemtype code="DeliveryMode" extends="GenericItem">
...
<attributes>
<attribute autocreate="true" qualifier="supportedPaymentModes" type="PaymentModeCollection"
generate="true">
<persistence type="jalo"/>
<modifiers read="true" write="true" search="false" optional="true"/>
</attribute>
</attributes>
</itemtype>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 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.