{{ Identifier quotedCatalog = catalog != null && catalog.isQuoted() ? new Identifier( tableInfo.getName().getCatalogName().getText(), true ) : tableInfo.getName().getCatalogName(); }} The problem is that the catalog is equal null (it's not defined in the @Table annotation), so this if condition boils down to Identifier quotedCatalog = tableInfo.getName().getCatalogName();, which is taken from the db and unquoted. |