JPA Method
in jakarta.persistence.ConnectionConsumer

void accept(
  C connection
)


Execute the action using the given connection.
Parameters:
connection - the connection to use
Throws:
Exceptionif a problem occurs calling the connection, usually a {@code java.sql.SQLException}
Since:
JPA 3.2