UTDetail detail1 = new UTDetail("one", 12, 30D);
UTDetail detail2 = new UTDetail("two", 11, 30D);
UTDetail detail3 = new UTDetail("three", 8, 30D);
Transaction txn = ebeanServer.beginTransaction();
try {
txn.setBatchMode(true);
ebeanServer.save(detail1);
ebeanServer.save(detail2);
ebeanServer.save(detail3);
txn.commit();
} finally {
txn.end();
}
List<UTDetail> details = ebeanServer.find(UTDetail.class).findList();
Assert.assertEquals(3, details.size());