Skip to Content
0
Feb 02, 2023 at 02:03 AM

ODATA Multiple Integration Object Items referring same Item Type

245 Views Last edit Feb 02, 2023 at 02:05 AM 3 rev

Hi All,

I am creating an Integration Object Items as part of an implementation and i am getting an issue when accessing the items via backoffice. The issue occurs when i use the same type in my Integration Object Item. I looked at the code and it seems Hybris is literally looking to have an Unique item -

public static Map<ComposedTypeModel, List<AbstractListItemDTO>> convertIntegrationObjectToDTOMap(ReadService readService, IntegrationObjectModel integrationObject) {<br>    return (Map)integrationObject.getItems().stream().collect(Collectors.toMap(IntegrationObjectItemModel::getType, (item) -> {<br>        return getItemDTOS(readService, item);<br>    }));<br>}

Example :

 
INSERT_UPDATE IntegrationObjectItem; integrationObject(code)[unique = true]; code[unique = true]   ; type(code)            ; root[default = false]
; Inbound ; TestIO; TestIO;
; Inbound ; Address ; Address ; true
; Inbound ; ResAddress ; Address