This topic has not yet been written. The content below is from the topic description.
Two common strategies can be used: binding the persistence context to the transaction boundaries, or keeping the persistence context available across several transactions.