This is expected behavior. When you delete the entity, the collection is dereferenced and its persister is set to null. If you need the collection size you should call #getSize before removing the entity. If you need the collection initialized, you should do that before removing the entity as well. |