use of jodd.db.oom.sqlgen.DbSqlBuilder in project jodd by oblac.
the class DbSqlTemplateWithPrefixTest method testTablePrefixSuffix.
@Test
public void testTablePrefixSuffix() {
DbSqlBuilder st;
st = sql("$T{Boy} $Boy.id $C{Boy.id}");
assertEquals("PRE_BOY_SUF PRE_BOY_SUF.ID PRE_BOY_SUF.ID", st.generateQuery());
st = sql("$T{Boy b} $b.id $C{b.id}");
assertEquals("PRE_BOY_SUF b b.ID b.ID", st.generateQuery());
}
Aggregations