Just need a flag to mark in org.hibernate.resource.transaction.backend.jdbc.internal.JdbcResourceLocalTransactionCoordinatorImpl.TransactionDriverControlImpl#markRollbackOnly and check it during commit handling.