Status: New
Owner: ----

New issue 551 by tomas.varaneckas: Possibility to mark transaction as rollback only (patch)
http://code.google.com/p/google-guice/issues/detail?id=551

This applies to "extensions/persist"

The following patch allows to mark transactions as rollback-only. It's useful in unit tests:

@Test
@Transactional(rollbackOnly = true)
public void testDatabaseStuff() throws Exception {
// do db manipulations
}

No data will be commited to db.



Attachments:
        transaction.rollbackonly.diff  1.8 KB

--
You received this message because you are subscribed to the Google Groups 
"google-guice-dev" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-guice-dev?hl=en.

Reply via email to