Add #persisted? to entity