cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Created relation but displays as collection in HMC

former_member630291
Participant
0 Likes
349

Hi Experts,

I've create a 1:n relationship in Hybris.

<relation localized="false" code="MultimediaAssetAltTextRel" autocreate="true" generate="true">

<sourceElement type="Media" qualifier="media" cardinality="one" />

<targetElement type="ImageAltText" qualifier="imageAltText" cardinality="many" collectiontype="set">

<modifiers read="true" write="true" search="true" optional="true" partof="true"/>

</targetElement>

</relation>

After building and updating platform, when I looked in HMC under Types -> XML representation. I get this.

<collectiontype code="MultimediaAssetAltTextRelimageAltTextColl" elementtype="ImageAltText" autocreate="false" generate="false"/>

I really didn't understand this. Can someone help me with this as I've created a relation but in HMC, it shows, a collection?

Accepted Solutions (0)

Answers (1)

Answers (1)

arvind-kumar_avinash
Active Contributor
0 Likes

Hi Ashish Agarwal - This is how hybris manages 1:n relation. Please check the table given below:

Ref: https://help.sap.com/viewer/d0224eca81e249cb821f2cdf45a82ace/1905/en-US/bae7ed9732a4423f867114217ae2...

arvind-kumar_avinash
Active Contributor
0 Likes

Hi Ashish Agarwal - did the answer meet your expectation? If yes, please accept it so that one can get to know that it has worked for you.