Or, you can start a new transaction with a BEGIN WORK statement.
或者,可以用 BEGIN WORK 语句开始一个新事务。
The odd thing about the read-only flag is that you need to start a transaction in order to use it.
关于只读标志很奇怪的一点是:要使用它,必须启动一个事务。
Start the transaction scope within the EntityManager.
在EntityManager中启动事务范围。
应用推荐