play 2.1.1: Unable to rollback transaction with ebean orm
问题 I have problem with understanding how to work with ebean transactions under play 2.1.1. Ebean.execute(txScope, new TxRunnable() { public void run() { Ebean.beginTransaction(); System.out.println("[**] : " + Ebean.currentTransaction()); User user = Ebean.find(User.class, 22); user.setPassword("qweqwe125"); Ebean.save(user); user = Ebean.find(User.class, 22); user.setPassword("qweqwe126"); Ebean.rollbackTransaction(); // or other case //Ebean.currentTransaction().rollback(); } But in this case