Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
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
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]
I agree. Here's the link:
subject: Remove entity objects
It's not a secret anymore!