persistence/play-java-jpa/src/main/java/play/db/jpa/DefaultJPAApi.java
@Deprecated
  public <T> T withTransaction(Supplier<T> block) {
    return withTransaction("default", false, block);
  }
@Deprecated
  public <T> T withTransaction(Supplier<T> block) {
    return withTransaction("default", false, block);
  }
@ Deprecated public < T > T withTransaction ( Supplier < T > block ) { return withTransaction ( "default" , false , 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(Function)} instead.
Run a block of code in a JPA transaction .