Skip to Content
Sep 08, 2021 at 04:18 PM

Override an OOTB Item's attribute Sap Commerce Hybris


Hi everyone, I'm trying to override the Order item, in order to change the attribute OriginalVersion from

<attribute qualifier="originalVersion" type="Order">   <modifiers read="true" write="false" search="true"optional="true" initial="true" />   <persistence type="property" /></attribute

to this:

<attribute qualifier="originalVersion" type="Order" redeclare="true" generate="false" autocreate="false">
    <persistence type="property"/>
    <modifiers read="true" write="true" optional="true" initial="false" />

as I can see the "Editable" field can be changed via backoffice, but It is impossible to save OrderModel items as I'm getting a ModelSaving Exception, could someone give me the right modifiers to persist the new version of this attribute?