"where emp2.SUPERIOR_ID is not null)", sql.getSQL());
}
@Test
public void Intertable2() {
QEmployee emp1 = new QEmployee("emp1");
QEmployee emp2 = new QEmployee("emp2");
SQLUpdateClause update = new SQLUpdateClause(null, SQLTemplates.DEFAULT, emp1);
update.set(emp1.id, new SQLSubQuery().from(emp2)
.where(emp2.superiorId.isNotNull())
.unique(emp2.id));