When removing already persisted MyA entity using below code, I am getting "java.lang.IllegalArgumentException: Removing a detached instance MyA" exception
Any help or pointers would be really helpful.
Thanks in advance
A transfer object are usually detached. And detached object cannot be removed.
So i will suggest try to use merge before removing.
Try something like this
I hope this helps.
this is supposed to be a surprise, but it smells like a tiny ad:
The Low Tech Laboratory Movie Kickstarter is LIVE NOW!