manage transactions for db operations

Issue #17 resolved
Artem Koshelev created an issue

The problem is you're not managing transactions in your plugin at all That means your operations can "join" in-flight transactions, which may or may not be read-only, when you didn't intend for them to.

In atlassian-plugin.xml you need to add <osgi:reference id="transactionTemplate" interface="com.atlassian.sal.api.transaction.TransactionTemplate"/> Then you can inject that into your CoverageManager

Than all of your methods that use the CoverageDao need to use a transaction

Comments (2)

  1. Log in to comment