Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EclipseLink » Problem with Cascade.REMOVE with OneToMany relationship JSE [FIXED] (Cascading JSE)
Problem with Cascade.REMOVE with OneToMany relationship JSE [FIXED] [message #517324] Fri, 26 February 2010 17:43 Go to previous message
Daniel Le Berre is currently offline Daniel Le Berre
Messages: 82
Registered: July 2009
Member
Hi,

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

 
Read Message
Read Message
Read Message
Read Message
Previous Topic:How to obtain connection from EntityManagerFactory?
Next Topic:Customization default sequence name.
Goto Forum:
  


Current Time: Fri May 24 17:11:58 EDT 2013

Powered by FUDForum. Page generated in 0.01845 seconds