@Deprecated
  public void withTransaction(final Runnable block) {
    """
	Run a block of code in a JPA transaction.
	
	@param block Block of code to execute
	@deprecated Deprecated as of 2.7.0. Use {@link #withTransaction(Consumer)} instead.
    """
    try {
      withTransaction(
          () -> {
            block.run();
            return null;
          });
    } catch (Throwable t) {
      throw new RuntimeException("JPA transaction failed", t);
    }
  }
@Deprecated
  public void withTransaction(final Runnable block) {
    try {
      withTransaction(
          () -> {
            block.run();
            return null;
          });
    } catch (Throwable t) {
      throw new RuntimeException("JPA transaction failed", t);
    }
  }
@ Deprecated public void withTransaction ( final Runnable block ) { try { withTransaction ( ( ) -> { block . run ( ) ; return null ; } ) ; } catch ( Throwable t ) { throw new RuntimeException ( "JPA transaction failed" , t ) ; } }
Run a block of code in a JPA transaction.

@param block Block of code to execute
@deprecated Deprecated as of 2.7.0. Use {@link #withTransaction(Consumer)} instead.
Run a block of code in a JPA transaction .