From: Kai Moritz Date: Sun, 27 Nov 2016 13:38:55 +0000 (+0100) Subject: WIP X-Git-Url: http://juplo.de/gitweb/?a=commitdiff_plain;h=bb6069ff5e565f522a7699225d950321dde667d1;p=hibernate-maven-plugin WIP --- diff --git a/src/main/java/de/juplo/plugins/hibernate/CreateMojo.java b/src/main/java/de/juplo/plugins/hibernate/CreateMojo.java index 9a959ec3..98bc8e88 100644 --- a/src/main/java/de/juplo/plugins/hibernate/CreateMojo.java +++ b/src/main/java/de/juplo/plugins/hibernate/CreateMojo.java @@ -91,7 +91,7 @@ public class CreateMojo extends AbstractSchemaMojo SchemaManagementTool tool = registry.getService(SchemaManagementTool.class); final EnumSet targetTypes = EnumSet.of(TargetType.SCRIPT); - if ((Boolean)settings.get(EXECUTE)) + if (Boolean.parseBoolean(settings.get(EXECUTE).toString())) targetTypes.add(TargetType.DATABASE); TargetDescriptor target = new TargetDescriptor() diff --git a/src/main/java/de/juplo/plugins/hibernate/DropMojo.java b/src/main/java/de/juplo/plugins/hibernate/DropMojo.java index 88f66986..beb3bfd1 100644 --- a/src/main/java/de/juplo/plugins/hibernate/DropMojo.java +++ b/src/main/java/de/juplo/plugins/hibernate/DropMojo.java @@ -90,7 +90,7 @@ public class DropMojo extends AbstractSchemaMojo SchemaManagementTool tool = registry.getService(SchemaManagementTool.class); final EnumSet targetTypes = EnumSet.of(TargetType.SCRIPT); - if ((Boolean)settings.get(EXECUTE)) + if (Boolean.parseBoolean(settings.get(EXECUTE).toString())) targetTypes.add(TargetType.DATABASE); TargetDescriptor target = new TargetDescriptor() diff --git a/src/main/java/de/juplo/plugins/hibernate/UpdateMojo.java b/src/main/java/de/juplo/plugins/hibernate/UpdateMojo.java index a97982eb..b64b4b22 100644 --- a/src/main/java/de/juplo/plugins/hibernate/UpdateMojo.java +++ b/src/main/java/de/juplo/plugins/hibernate/UpdateMojo.java @@ -90,7 +90,7 @@ public class UpdateMojo extends AbstractSchemaMojo SchemaManagementTool tool = registry.getService(SchemaManagementTool.class); final EnumSet targetTypes = EnumSet.of(TargetType.SCRIPT); - if ((Boolean)settings.get(EXECUTE)) + if (Boolean.parseBoolean(settings.get(EXECUTE).toString())) targetTypes.add(TargetType.DATABASE); TargetDescriptor target = new TargetDescriptor()