2020 Feb 21 6:34 AM - edited 2024 Feb 03 6:16 PM
Hi All,
I have written code for category model, which updates classifying Attributes and saves the category model.
This is working fine for the first time. But when I try to execute the same code. Model is not getting saved.
Could anyone please help me what I am doing wrong? below is the sample code snippet
List<Response> response = classAttributeService.requestAttributes(category.getCode());
categoryService.populateClassifications(response , category);
modelService.save(category);
Thanks in Advance
Request clarification before answering.
You can try follow way
modelService.refresh(model);
modelservice.save();
modelservice.detach(model);
I hope this will help you.
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 | |
| 1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.