Added a warning, if a directory, that should be scanned, does not exist To abort with an option would not be wise, because there might be configurations, that do not need to scan any directories. For example, if the plugin is configured to create the database schema for classes, that are contained in a dependency.
Fixed bug with directories, that should be scanned for annotations All configuration values for <scanClasses> and <scanTestClasses> were ignored. Thanx to Thomas Mauß, how reported this bug and provided a very usefull integration test, that made it possible to find the bug in a breeze!
Fixed the akquisition of a database-connection, if one is needed * The helper-class SimpleConnectionProvider was not changed to reflect the alterd handling of the configuration parameters. * If only the user is missing, SimpleConnectionProvider tries to akquire a connection, because for example H2 does not always need a user, hence this is an sufficient configuration. * If an exception is thrown during database akquisition, it is only logged, instead of rethrown. * Adapted the example-code for the hibernate-bug HHH-9615 to function as an additional integration-test and used it, to proof, that an database connection can be akquired, if only the driver and the URL is present.
Fixed error-reporting: errors reported by Hibernate are no longer swallowed Renamed the H2-databases in the OSGI-tests of the Hibernate-Tutorials, because it showed, that these tests are failing, but only, if they are executed together through the parent-directory of the tutorial, but not, if they are executed separatly, which indicates timing issues in connection with the shutdown of the database.
Added the goal "update" This new goal is not as useful, as it looks, because the quality of the generated update-script heavily depends on the support for the JDBC metadata API of the used driver. As the added integration-test shows, this support is rather bad for the H2-database, that is used in the test: a change to the length of one column is ignored. Only the rename is reflected. The same seems to hold for MySQL, as can be read here: http://stackoverflow.com/a/12405147/247276
The content of the generated script is checked for modifications as well This enables the plugin to automatically generate the SQL if the generated script is missing (or was exidentically changed, for example by repository operations).
Upgraded Hibernate * hibernate-core 5.0.2.Final -> 5.2.4.Final * hibernate-validator 5.2.2.Final -> 5.3.1.Final
Fixed NullPointerException in ModificationTracker Improved error-checking while loading mapping-ressources and calculating the according MD5-sums. A check was missing, if a mapping-file, that was configured in a META-INF/persistence.xml, really exists.