io.quarkiverse.doma.runtime.JtaRequiresNewController Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of quarkus-doma Show documentation
Show all versions of quarkus-doma Show documentation
Simplify your database accesses with compile-time code generation
The newest version!
package io.quarkiverse.doma.runtime;
import jakarta.inject.Singleton;
import jakarta.transaction.Transactional;
import org.seasar.doma.jdbc.RequiresNewController;
import io.quarkus.arc.DefaultBean;
@Singleton
@DefaultBean
public class JtaRequiresNewController implements RequiresNewController {
@Override
@Transactional(Transactional.TxType.REQUIRES_NEW)
public R requiresNew(Callback callback) throws Throwable {
return RequiresNewController.super.requiresNew(callback);
}
}