When we call remove() on an Entity bean instance, the entity (actual row in the database is deleted) but the bean instance survives. So this means that the beans state is reset to some initial values and sent back to the pool. Am I right in this sense?
SCJP 1.4, SCWCD 1.4 - Hints for you, Certified Scrum Master
Did a rm -R / to find out that I lost my entire Linux installation!
No, the bean is not reinitialized. The state does not change after the removal.
Persistance specification, 3.2.2 Removal. After an entity has been removed, its state (except for generated state) will be that of the entity at the point at which the remove operation was called.
So that means if after calling remove(), if my value was joe for the firstName instance field in my entity bean, then joe remains when my entity bean instance is pooled? Is that right?
SCJP 1.4, SCWCD 1.4 - Hints for you, Certified Scrum Master
Did a rm -R / to find out that I lost my entire Linux installation!
if you think brussel sprouts are yummy, you should try any other food. And this tiny ad:
Free, earth friendly heat - from the CodeRanch trailboss