+ /** The generated SQL varies with the dialect! */
+ if (md5s.containsKey(DIALECT))
+ {
+ String dialect = properties.getProperty(DIALECT);
+ if (md5s.get(DIALECT).equals(dialect))
+ getLog().debug("SQL-dialect unchanged.");
+ else
+ {
+ getLog().debug("SQL-dialect changed: " + dialect);
+ modified = true;
+ md5s.put(DIALECT, dialect);
+ }
+ }
+ else
+ {
+ modified = true;
+ md5s.put(DIALECT, properties.getProperty(DIALECT));
+ }
+
+ if (!modified)
+ {
+ getLog().info("No modified annotated classes found and dialect unchanged.");
+ getLog().info("Skipping schema generation!");
+ project.getProperties().setProperty("hibernate4.skipped", "true");
+ return;
+ }
+