yes tested, it works....The @Destroy method is now like this....
| @Remove
| @Destroy
| public void destroy() {
| if (!this.completedOrCanceled) {
| if (this.motherEntity.getId() != null) {
| entityManager.merge(this.recipe); // without merging there might be
exception saying you are trying to remove a detached object.....
| entityManager.remove(this.recipe);
| entityManager.flush();
| }
| }
| }
|
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4063736#4063736
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4063736
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user