Hy experts. I have one question for you.
In my item.xml I create a new enum:
<enumtype code="EmployeeTypeEnum" generate="true" autocreate="true">
<description>Type of employee</description>
<value code="PROMOTER" />
<value code="MANAGER" />
</enumtype>
Then I want to add this new type yo employee type.
<itemtype code="Employee" autocreate="false" generate="false">
<description>Add enum to employee</description>
<attributes>
<attribute qualifier="employeeType" type="EmployeeTypeEnum">
<modifiers optional="true" initial="false"/>
<description>Use email type for restrictions</description>
<persistence type="property" />
</attribute>
</attributes>
</itemtype>
But after compile and update when I access Employe data I get this error.
Do you know how can I fix this.
Thanxs.
Request clarification before answering.
But after compile and update when I access Employe data I get this error.
How are you accessing the Employee data? I did not see any problem with your enumtype and itemtype configurations. You can refer https://wiki.hybris.com/pages/viewpage.action?pageId=294094110#Trail~NewDataModel_-Enumtypes as an example.
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 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.