aspose file tools*
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 Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Remove entity objects" Watch "Remove entity objects" New topic
Author

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 10.3.4.1) 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?
thanks
daniel
Lasse Koskela
author
Sheriff

Joined: Jan 23, 2002
Posts: 11962
    
    5
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: http://aspose.com/file-tools
 
subject: Remove entity objects