}
@Test
public void testColumns3() {
DbSqlBuilder st;
st = sql("$C{b.id,b.name} from $T{b b}").use("b", Boy.class);
assertEquals("b.ID, b.NAME from BOY b", st.generateQuery());
st = sql("$C{ a.ajdi , a.nejm } from $T{b a}").use("b", BadBoy.class);
assertEquals("a.ID, a.NAME from BOY a", st.generateQuery());
st = sql("$C{b.id,b.name} from $T{b b}").use("b", Boy.class);
assertEquals("b.ID as BOY$ID, b.NAME as BOY$NAME from BOY b", st.aliasColumnsAs(TABLE_NAME).generateQuery());
st = sql("$C{ a.ajdi , a.nejm } from $T{b a}").use("b", BadBoy.class);
assertEquals("a.ID as BOY$ID, a.NAME as BOY$NAME from BOY a", st.aliasColumnsAs(TABLE_NAME).generateQuery());
st = sql("$b.id as d, $C{b.name} from $T{b b}").use("b", Boy.class).aliasColumnsAs(TABLE_NAME);
assertEquals("b.ID as d, b.NAME as BOY$NAME from BOY b", st.generateQuery());
st = sql("$a.ajdi as d, $C{ a.nejm } from $T{b a}").use("b", BadBoy.class).aliasColumnsAs(TABLE_NAME);
assertEquals("a.ID as d, a.NAME as BOY$NAME from BOY a", st.generateQuery());
st = sql("$C{b.*} from $T{b b}").use("b", Boy.class).aliasColumnsAs(TABLE_NAME);
assertEquals("b.GIRL_ID as BOY$GIRL_ID, b.ID as BOY$ID, b.NAME as BOY$NAME from BOY b", st.generateQuery());
st = sql("$C{a.*} from $T{b a}").use("b", BadBoy.class);
assertEquals("a.ID, a.GIRL_ID, a.NAME from BOY a", st.generateQuery());
st = sql("$C{a.*} from $T{BadBoy a}");
assertEquals("a.ID, a.GIRL_ID, a.NAME from BOY a", st.generateQuery());
st = sql("$C{BadBoy.ajdi} from $T{BadBoy BadBoy}");
assertEquals("BadBoy.ID from BOY BadBoy", st.generateQuery());
st = sql("$C{BadBoy.ajdi} from $T{BadBoy}");
assertEquals("BOY.ID from BOY", st.generateQuery());
}