This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes EJB and other Java EE Technologies and the fly likes Remove entity objects Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Remove entity objects" Watch "Remove entity objects" New topic

Remove entity objects

Fisher Daniel
Ranch Hand

Joined: Sep 14, 2001
Posts: 582
Dear all,
I want to know about the container's process when users remove one or more entity objects.
The specification (Chapter said that
" ..., the Container must remove the entity object from all relationships in which it participates, and then remove its persistent representation."
What about if there is error when container remove the data in persistance storage?
Is will Contaner create again the entity object with the last values?
Lasse Koskela

Joined: Jan 23, 2002
Posts: 11962
The container probably does all of this within a transaction and performs a rollback to all changes if the last step fails.

Author of Test Driven (2007) and Effective Unit Testing (2013) [Blog] [HowToAskQuestionsOnJavaRanch]
It is sorta covered in the JavaRanch Style Guide.
subject: Remove entity objects
Similar Threads
Lifecycle of EJB Objects
Entity Bean lifecycle question...
Coffee Cream on EB - Mistakes/Doubts #4
Dout about EJBHome.remove(Handle h) for entity beans
how cascade delete works?