put in persistence context sample (within a transaction)
Merge pull request #1 from peter-fu/add-persistence-context-sample

put in persistence context sample (within a transaction)