entity beans written