awjamesfrj
(James Daniel Freitas)
October 7, 2017, 6:45pm
#1
Hi,
I am trying to delete an Entity using DataManager remove method but it is not working
public void remove(Long id) {
Setting setting = getSettingById(id);
<b>dataManager.remove(setting);</b>
}
How should I do to remove an Entity ?
Thanks,
James
tsarev
(Daniil Tsaryov)
October 9, 2017, 8:15am
#2
Hello,
this method can be used without any special actions.
Please clarify your question - when and where do you perform the deletion? It will be great if you share a small project where this problem can be reproduced.
Best regards,
Daniil.
awjamesfrj
(James Daniel Freitas)
October 9, 2017, 10:28pm
#3
Hi Daniil,
Thanks for your reply
I don’t know what happened for sure. I was performing the deletion in my repository class.
As I had to recreate my project for other reasons now it is working.
Thank you
tsarev
(Daniil Tsaryov)
October 10, 2017, 8:34am
#4
Good. Write if the problem recurs.