From 953501b3809ab058ea47161f2f484e2c7c4cd610 Mon Sep 17 00:00:00 2001 From: Lukas Eder Date: Wed, 23 Mar 2022 10:08:22 +0100 Subject: [PATCH] [jOOQ/jOOQ#13324] Code generation output shouldn't print table mapping output, if it's the same as the input --- .../src/main/java/org/jooq/codegen/JavaGenerator.java | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/jOOQ-codegen/src/main/java/org/jooq/codegen/JavaGenerator.java b/jOOQ-codegen/src/main/java/org/jooq/codegen/JavaGenerator.java index 5923ead9af..755db0d2f7 100644 --- a/jOOQ-codegen/src/main/java/org/jooq/codegen/JavaGenerator.java +++ b/jOOQ-codegen/src/main/java/org/jooq/codegen/JavaGenerator.java @@ -5661,8 +5661,12 @@ public class JavaGenerator extends AbstractGenerator { log.info("Generating table", out.file().getName() + " [input=" + table.getInputName() + - ", output=" + table.getOutputName() + - ", pk=" + (table.getPrimaryKey() != null ? table.getPrimaryKey().getName() : "N/A") + + (!table.getInputName().equals(table.getOutputName()) + ? ", output=" + table.getOutputName() + : "") + + (table.getPrimaryKey() != null + ? ", pk=" + table.getPrimaryKey().getName() + : "") + "]"); if (log.isDebugEnabled())