@Test
public void test() {
ResetBasicData.reset();
RawSql rawSql0 = RawSqlBuilder.parse(" select distinct r.id, r.name from o_customer r ")
.create();
Query<Customer> query0 = Ebean.find(Customer.class);
query0.setRawSql(rawSql0);
query0.where().ilike("name", "r%");
RawSql rawSql = RawSqlBuilder.parse(" select distinct r.id, r.name from o_customer r ")
.columnMapping("r.id", "id").columnMapping("r.name", "name").create();
Query<Customer> query = Ebean.find(Customer.class);
query.setRawSql(rawSql);
query.where().ilike("name", "r%");