About @Transactional

issue

Unexpected exception (Error 990)

Exception is thrown on commiting a transaction using this code: transaction.begin(); try { repository.setStatus(ImportStatusFlag.RUNNING_IMPORT); repository.setImportProgressMessage("Importing..."); //$NON-NLS-1$ repository.setImportProgressPercent(0); transaction.commit(); } finally { if (transaction.isActive()) { transaction.rollback(); } } "repository" is a Entity in database. Stracktrace as follows:   Bug Version: 2.5.1 Priority: Normal Status: Fixed Replies: 2 Type:  Bug ...

 
api-jdo

flush()

Flushes all dirty, new, and deleted instances to the data store.(Method of javax.jdo.PersistenceManager)

 
api-jdo

getOptimistic()

Optimistic transactions do not hold data store locks until commit time.(Method of javax.jdo.Transaction)

 
api-jdo

getSynchronization()

The user-specified Synchronization instance for this Transaction instance.(Method of javax.jdo.Transaction)

 
api-jdo

setOptimistic(optimistic)

Optimistic transactions do not hold data store locks until commit time.(Method of javax.jdo.Transaction)

 
api-jdo

getNontransactionalRead()

If true, allows persistent instances to be read without a transaction active.(Method of javax.jdo.Transaction)

 
api-jdo

getNontransactionalWrite()

If true, allows persistent instances to be written without a transaction active.(Method of javax.jdo.Transaction)

 
api-jdo

getDataStoreConnection()

If this method is called while a datastore transaction is active, the object returned will be enlisted in the current transaction.(Method of javax.jdo.PersistenceManager)

 
api-jdo

setNontransactionalRead(nontransactionalRead)

If true, allow persistent instances to be read without a transaction active.(Method of javax.jdo.Transaction)

 
api-jdo

setNontransactionalWrite(nontransactionalWrite)

If true, allow persistent instances to be written without a transaction active.(Method of javax.jdo.Transaction)