-
1. Re: Problem with CascadeType.DELETE_ORPHAN in EJB 3 beta 1
epbernard Jul 14, 2005 11:07 PM (in response to ceracm)Show me the code manipulating your object
-
2. Re: Problem with CascadeType.DELETE_ORPHAN in EJB 3 beta 1
ceracm Jul 15, 2005 12:48 AM (in response to ceracm)The code does the following:
1. Load the PendingOrder - EntityManager.find()
2. Invokes an update() method on the PendingOrder
3. PendingOrder.update() does lineItem.clear() (removing lineItems individually behaves the same)
4. PendingOrder.update() creates new line items and adds them to the collection
FYI The Hibernate version of the code works fine.
Chris -
3. Re: Problem with CascadeType.DELETE_ORPHAN in EJB 3 beta 1
epbernard Jul 15, 2005 1:45 AM (in response to ceracm)WDYM by the Hibernate version of the code?
You mean the code using the Hibernate APIs and Hibernate Annotations? -
4. Re: Problem with CascadeType.DELETE_ORPHAN in EJB 3 beta 1
ceracm Jul 15, 2005 10:13 AM (in response to ceracm)Almost.
The original code that I am migrating to EJB 3 used the Hibernate APIs and the Hibernate XML mapping. -
5. Re: Problem with CascadeType.DELETE_ORPHAN in EJB 3 beta 1
ceracm Jul 20, 2005 7:32 PM (in response to ceracm)Any idea why this is not working?
-
6. Re: Problem with CascadeType.DELETE_ORPHAN in EJB 3 beta 1
epbernard Jul 20, 2005 7:43 PM (in response to ceracm)Provide a runnable test case to Hibernate JIRa and I'll look at it.
-
7. Re: Problem with CascadeType.DELETE_ORPHAN in EJB 3 beta 1
coolme Aug 8, 2005 3:07 PM (in response to ceracm)I have the same problem.
-
8. Re: Problem with CascadeType.DELETE_ORPHAN in EJB 3 beta 1
epbernard Aug 11, 2005 4:53 AM (in response to ceracm)same answer
-
9. Re: Problem with CascadeType.DELETE_ORPHAN in EJB 3 beta 1
ceracm Aug 21, 2005 6:29 PM (in response to ceracm)"epbernard" wrote:
Provide a runnable test case to Hibernate JIRa and I'll look at it.
Done. See http://opensource2.atlassian.com/projects/hibernate/browse/EJB-54 -
10. Re: Problem with CascadeType.DELETE_ORPHAN in EJB 3 beta 1
epbernard Aug 21, 2005 7:51 PM (in response to ceracm)I was faster :-)
http://opensource.atlassian.com/projects/hibernate/browse/EJB-53