jodd-db/src/main/java/jodd/db/oom/sqlgen/DbEntitySql.java
public DbSqlBuilder findById(final Object entity) {
		final String tableRef = createTableRefName(entity);
		return sql().$(SELECT).column(tableRef).$(FROM).table(entity, tableRef).$(WHERE).matchIds(tableRef, entity);
	}
public DbSqlBuilder findById(final Object entity) {
		final String tableRef = createTableRefName(entity);
		return sql().$(SELECT).column(tableRef).$(FROM).table(entity, tableRef).$(WHERE).matchIds(tableRef, entity);
	}
Creates SELECT criteria for the entity matched by id.