on ‎2018 Dec 10 10:54 AM
Hi Experts,
We have a requirement, where we need to create an attribute of type : CategoryProductRelation in our custom product type.
<attribute qualifier="primaryCategory" type="CategoryProductRelation">
<persistence type="property"/>
</attribute>
We are able to insert and show the attribute value in backoffice, but attribute is not getting created in {custom-product}*Model.java class thats why we are not able to access the attribute in code level.
Any pointers in this issue. Whether we can use attribute of type Relation or not ?
Note : Hybris version 6.7
Help others by sharing your knowledge.
AnswerRequest clarification before answering.
I think your use case is to mark a category as main/default/primary for a product. If this is the case, you can achieve it by creating an attribute like attribute qualifier="primaryCategory" type="Category" in your-product itemtype. Any reason why you want to create it of type, CategoryProductRelation?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 1 | |
| 1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.