Package com.avaje.ebean

Examples of com.avaje.ebean.EbeanServer.refresh()


    Assert.assertEquals("initialClobValue", entity.getDescription());

    LoggedSqlCollector.start();
   
    // Refresh query includes all properties
    server.refresh(entity);
   
    // Assert all properties fetched in refresh
    List<String> loggedSql = LoggedSqlCollector.stop();
    Assert.assertEquals(1, loggedSql.size());
    Assert.assertTrue("Refresh includes all", loggedSql.get(0).contains(sqlWithClob));
View Full Code Here


    Assert.assertEquals("initialClobValue", entity.getDescription());

    LoggedSqlCollector.start();
   
    // Refresh query includes all properties
    server.refresh(entity);
   
    // Assert all properties fetched in refresh
    loggedSql = LoggedSqlCollector.stop();
    Assert.assertEquals(1, loggedSql.size());
    Assert.assertTrue("Refresh includes all", loggedSql.get(0).contains(expectedSql));
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.