Hi Eric

2014-01-26 Stargate <[email protected]>

> Hi Lukas,
>
> first thx for your help.
>
>
>
> Both calls (removeAccount(), addAccount()) start new transactions, the way
>> you have configured your GuiceModule.
>
>
>  sorry this was not expressed clearly enough. i want that only the
> addAccount() method should performe in a single transaction. And what must
> i change on my code that the addAccount() method is running in a single
> transaction?
>

addAccount() is currently working in a single transaction. It fails because
there is a constraint violation in the second statement, which rolls back
both statements in addAccount(). In another preceding transaction, you have
already removed that account (and committed that removal). So I'm not sure
where the problem is...?

Note, as I mentioned before, we'll create our own, official and
integration-tested Spring / Guice / jOOQ example. This is documented here:
https://github.com/jOOQ/jOOQ/issues/2981

A first draft is committed:
https://github.com/jOOQ/jOOQ/tree/master/jOOQ-examples/jOOQ-spring-guice-example

It would be good to use that newly-created official documentation project
as a basis for further discussion. I feel that this will decrease the
confusion in this thread.

-- 
You received this message because you are subscribed to the Google Groups "jOOQ 
User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to