Does JPA roll back for custom queries?

I am using JPA 1.0 with hibernate as my provider. Inside an entitymanager transaction, if a series of its own queries is being executed (including DELETE SQL statements) and an error occurs, will the own queries be rolled back for an error?

I ran into a deadlock problem in the oracle database, and I noticed that it left the database inconsistent, although part of the transaction was dropped. I am wondering if the inconsistency was the result of one transaction being successful and another transaction being rolled back, but only to a certain point?

Thank..

+3
source share
2 answers

" JPQL", , SQL, SQL " ".

+3

. JPQL SQL- .

+1

Source: https://habr.com/ru/post/1744996/


All Articles