Skip to main content



      Home
Home » Eclipse Projects » EclipseLink » cascade insert not working on Eclipselink event
cascade insert not working on Eclipselink event [message #528048] Mon, 19 April 2010 02:07 Go to next message
Eclipse UserFriend
If we create and persist an entity in the preInsert Eclipselink event, these are simply not persisted. A PK is assigned, but the insert is not executed. What is the correct place to create and persist a related entity?

Tom
Re: cascade insert not working on Eclipselink event [message #528151 is a reply to message #528048] Mon, 19 April 2010 10:25 Go to previous message
Eclipse UserFriend
preInsert may be too late, you could try prePersist.

On the preInsert you could also manually insert the new object. Call Session.insertObject(), this may work.
Previous Topic:Problem with ReportQuery
Next Topic:cascade delete not working when cache is active
Goto Forum:
  


Current Time: Sat Aug 30 19:48:44 EDT 2025

Powered by FUDForum. Page generated in 0.08266 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top