Search in sources :

Example 1 with ActiveEntity

use of cn.hutool.db.ActiveEntity in project hutool by looly.

the class CRUDTest method findActiveTest.

@Test
public void findActiveTest() throws SQLException {
    ActiveEntity find = runner.find(CollUtil.newArrayList("name AS name2"), Entity.create("user"), new ActiveEntityHandler());
    Assert.assertEquals("user", find.getTableName());
}
Also used : ActiveEntityHandler(cn.hutool.db.handler.ActiveEntityHandler) ActiveEntity(cn.hutool.db.ActiveEntity) Test(org.junit.Test)

Aggregations

ActiveEntity (cn.hutool.db.ActiveEntity)1 ActiveEntityHandler (cn.hutool.db.handler.ActiveEntityHandler)1 Test (org.junit.Test)1