Re: JPA + Postgres = autocommit? - Mailing list pgsql-jdbc

From John R Pierce
Subject Re: JPA + Postgres = autocommit?
Date
Msg-id fbca3a7e-c460-e537-fb1c-e23b74ed3020@hogranch.com
Whole thread Raw
In response to Re: JPA + Postgres = autocommit?  (rob stone <floriparob@gmail.com>)
Responses Re: JPA + Postgres = autocommit?  (rob stone <floriparob@gmail.com>)
List pgsql-jdbc
On 7/25/2016 2:48 PM, rob stone wrote:
> I know nothing about Payara, etc. but the "traditional" way of handling
> this in an application is to:-
>
> BEGIN;
>
> Do your inserts/updates etc.
>
> COMMIT; or if you caught any errors during the inserting/updating, then
>
> ROLLBACK;

Not in Java/JDBC applications.   Rather,  they have the concept of
autocommit on/off, you configure it on a per connection basis.
commit() and rollback() are API calls to the java database connection
object.

the real question here is how you convince the OP's stack of tools to
disable autocommit, and that I can't help with, but I'm sure its some
field in one of those XML files


--
john r pierce, recycling bits in santa cruz



pgsql-jdbc by date:

Previous
From: rob stone
Date:
Subject: Re: JPA + Postgres = autocommit?
Next
From: rob stone
Date:
Subject: Re: JPA + Postgres = autocommit?