openjpa-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hairinwind <Dong....@elasticpath.com>
Subject Event was not fired for child entity when cascading deleting happens
Date Mon, 09 Mar 2009 19:26:30 GMT

Event was not fired for child entity when cascading deleting happens. 

For example, The parent entity has the reference of the child entity and the
cascade type is ALL.

While save the parent entity, it will also save the child entity. The
persist listener is triggered twice. One for parent entity and the other one
is for the child entity. 

But when delete the parent entity, the delete listener is only triggered
once for the parent entity. 

How can I make the listener also be triggered for the child entity?

Thanks!
-- 
View this message in context: http://n2.nabble.com/Event-was-not-fired-for-child-entity-when-cascading-deleting-happens-tp2451102p2451102.html
Sent from the OpenJPA Users mailing list archive at Nabble.com.


Mime
View raw message