|Problem with Cascade.REMOVE with OneToMany relationship JSE [FIXED] [message #517324]
||Fri, 26 February 2010 17:43
| Daniel Le Berre
Registered: July 2009
I am facing a strange issue.
I am using EclipseLink 2.0 in a web application running in JSE mode (Tomcat 6).
I have a hierarchy of entities (e.g. B extends A). B is in a OneToMany bidirectional relationship with class X.
I would like to remove elements X in relation with B when I remove B.
I set the cascade to Cascade.ALL.
If I deploy my entities in a JEE5 environment (Jonas 5.2 snapshot), it works fine.
(I mean I call the em.remove(a) in a stateless EJB)
If I deploy my entities on Tomcat 6, it does not seem to work.
(Here the em.remove(a) is performed in a regular Java class)
Is there something specific to setup to make cascading working in JSE environment?
[Updated on: Wed, 03 March 2010 02:06]
Report message to a moderator
Powered by FUDForum
. Page generated in 0.16952 seconds