on 2018 Jul 19 8:05 PM
Request clarification before answering.
Hybris enum can be dynamic whereas java enum is fixed
Also you can add values to dynamic enum in runtime but in java enum, it is not possible
<enumtype generate="true" code="NavigationBarMenuLayout"
autocreate="true" dynamic="true">
<description>This type determines the position of navigation bar.</description>
<value code="AUTO" />
<value code="RIGHT_EDGE" />
<value code="LEFT_EDGE" />
</enumtype>
set dynamic=true to make enum as dynamic
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Venkateswarlu,
You can add new value for an enum using valueOf method of that particular enum if and only if its dynamic attribute is true. Otherwise you'll get ConsistencyCheckException.
You can refer the below link for more details of how to use enumerations in Hybris.
https://help.hybris.com/6.7.0/hcd/8c895989866910148d6a802f06651702.html
Thanks, .
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.