Hello
I found this at page 552 in the spec:
Added requirement that the Bean Provider must use only the Required, RequiresNew, or Mandatory
transaction attributes for methods defined in the home or remote interface of an entity bean with EJB 2.0
container-managed persistence.
I agree with Reid's previous post. The beans state can only be changed from a business method, and the container will always calls ejbStore and synchronize the bean with the database at the end of a transaction.
There seems to be no need to update a row in the database that is just about to be deleted. The reason why the container needs to call ejbLoad and get the bean consistent with the persistent store is for the cascade deletes to be correct.
This is a complex issue, please correct me if I'm wrong.
/Magnus
[ January 19, 2004: Message edited by: Magnus Stattin ]