我試圖在初始化時爲HyBris創建的現有產品類型添加一個名爲'url_key'的新屬性,僅用於學習目的。向現有產品類型添加新屬性 - SAP Hybris電子商務
我創造了我的項目類型在我的分機是這樣的:
<itemtype code="UrlKeyProduct" extends="Product" generate="false">
<attributes>
<attribute autocreate="true" qualifier="url_key" type="java.lang.String">
<persistence type="property"/>
<modifiers read="true" write="true" search="true" initial="true" optional="true" unique="true"/>
</attribute>
</attributes>
</itemtype>
編譯,而現在我看到一個UrlKeyProductModel.java和GeneratedUrlKeyProductModel.java ......但現在做什麼有這個新創建/更新產品時產品座艙中可用的屬性以及通過REST進行的OCC響應中的屬性?
我看到了像editorArea這樣的幾個xml文件的引用,但我不知道這些文件是否已經存在,或者我是否必須創建它們或在哪裏。
謝謝大家。