From 19740023bb37770ad8e08c8e50687cb507e2fbfd Mon Sep 17 00:00:00 2001 From: Kai Moritz Date: Fri, 14 Dec 2012 02:16:44 +0100 Subject: [PATCH] Plugin ignores upper- or lower-case mismatches for "type" and "target" --- src/main/java/de/juplo/plugins/hibernate4/Hbm2DdlMojo.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/de/juplo/plugins/hibernate4/Hbm2DdlMojo.java b/src/main/java/de/juplo/plugins/hibernate4/Hbm2DdlMojo.java index 7a5e0af0..a2306acc 100644 --- a/src/main/java/de/juplo/plugins/hibernate4/Hbm2DdlMojo.java +++ b/src/main/java/de/juplo/plugins/hibernate4/Hbm2DdlMojo.java @@ -479,7 +479,7 @@ public class Hbm2DdlMojo extends AbstractMojo Target target = null; try { - target = Target.valueOf(this.target); + target = Target.valueOf(this.target.toUpperCase()); } catch (IllegalArgumentException e) { @@ -490,7 +490,7 @@ public class Hbm2DdlMojo extends AbstractMojo Type type = null; try { - type = Type.valueOf(this.type); + type = Type.valueOf(this.type.toUpperCase()); } catch (IllegalArgumentException e) { -- 2.20.1