如下图所示:

hybris impex里的小括号语法

INSERT_UPDATE Product;code[unique=true];supercategories;manufacturerName;manufacturerAID;unit(code);ean;variantType(code);supercategories;manufacturerName;manufacturerAID;unit(code);ean;variantType(code);catalogVersion;$approved
;23191;1288, brand_5;Sony;ACC-CSPW;pieces;

默认情况下,ImpEx期望字段值为主键primary key:

hybris impex里的小括号语法

Since primary keys are not usually known externally, ImpEx alternatively allows using attributes of the referenced item for lookup. They’re provided in brackets immediately after the column attribute name: ‘(’(’,’)* ‘)’.

因为主键一般来说对于外界消费者不可见,

hybris impex里的小括号语法

所以使用文章开头的另一种语法:(引用条目名),下面的例子引用条目名为code,所以impEx里只需要出现单位的code "pieces"即可,而不需要指定主键。

hybris impex里的小括号语法

要获取更多Jerry的原创文章,请关注公众号"汪子熙":
hybris impex里的小括号语法

相关文章:

  • 2021-12-19
  • 2022-12-23
  • 2021-12-10
  • 2022-12-23
  • 2021-08-04
  • 2022-02-19
  • 2021-06-12
猜你喜欢
  • 2021-06-14
  • 2022-12-23
  • 2021-10-19
  • 2021-11-26
  • 2021-10-27
  • 2021-12-21
相关资源
相似解决方案