‎2020 Jul 06 12:27 PM - edited ‎2024 Feb 03 7:08 PM
what is the use of @ symbol in impexs (Hybris)?
Request clarification before answering.
They are Special Attributes: https://help.sap.com/viewer/d0224eca81e249cb821f2cdf45a82ace/1905/en-US/1c8f5bebdc6e434782ff0cfdb0ca...
Sometimes you need to add data to an item that is not covered by an attribute, for example the media data. In these cases, the syntax of ImpEx provides a special kind of attribute definition called special attributes that do not have a mapping to a real attribute of the configured type.
They are marked with the @ symbol and always need the translator modifier, because there is no default implementation. Furthermore the specified translator has to be a realization of the SpecialValueTranslator interface.
The following code sample shows how to create a media with the data set from the specified file:
INSERT_UPDATE Media;code[unique=true];@media[translator=de.hybris.platform.impex.jalo.media.MediaDataTranslator];myMedia;file://c:/myMedia.txt
The type Media has no media attribute, but specifying the media attribute as a special attribute instructs ImpEx not to search for such an attribute. Instead, it will call the special translator specified with the translator modifier, which performs the import logic.
Let me know if it answered your question. If it does, don't forget to upvote and accept the answer.
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 | |
| 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.