add documentation to PersistEntity

only comments and type variable names changed