public Optional<SchemaAndTable> getOverride(SchemaAndTable key) {
        if (!schemaTables.isEmpty() && key.getSchema() != null) {
            if (schemaTables.containsKey(key)) {
                return Optional.ofNullable(schemaTables.get(key));
            }
        }

        if (tables.containsKey(key.getTable())) {
            String table = tables.get(key.getTable());
            return Optional.of(new SchemaAndTable(key.getSchema(), table));
        }
        return Optional.empty();
    }
{@link NameMapping} implementation that allows specifying exact schema, table and column name mappings.
querydsl-sql/src/main/java/com/querydsl/sql/namemapping/PreConfiguredNameMapping.java