Persistence example - saving an entity