Kai Moritz [Fri, 5 Apr 2019 11:03:44 +0000 (13:03 +0200)]
Added tutorials of the hibernate-release 5.0.12.Final
This commit contains the unchanged tutorials from the 5.0.12-Release
See: http://docs.jboss.org/hibernate/orm/5.0/quickstart/html/#preface
Download: http://docs.jboss.org/hibernate/orm/5.0/quickstart/html/hibernate-tutorials.zip
Kai Moritz [Fri, 5 Apr 2019 11:00:01 +0000 (13:00 +0200)]
Added tutorials of the hibernate-release 5.1.17.Final
This commit contains the unchanged tutorials from the 5.1.17-Release
See: http://docs.jboss.org/hibernate/orm/5.1/quickstart/html_single/#preface
Download: http://docs.jboss.org/hibernate/orm/5.1/quickstart/html_single/hibernate-tutorials.zip
Kai Moritz [Fri, 5 Apr 2019 09:54:06 +0000 (11:54 +0200)]
Added tutorials of the hibernate-release 5.2.18.Final
* Moved the version of the tutorials from 4.3.9.Final to tutorieals-4.3.9
* This commit contains the unchanged tutorials from the 5.2.18-Release
See: http://docs.jboss.org/hibernate/orm/5.2/quickstart/html_single/#preface
Download: http://docs.jboss.org/hibernate/orm/5.2/quickstart/html_single/hibernate-tutorials.zip
Kai Moritz [Tue, 7 Feb 2017 12:00:16 +0000 (13:00 +0100)]
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.
Kai Moritz [Sun, 13 Nov 2016 14:56:56 +0000 (15:56 +0100)]
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.
Kai Moritz [Sun, 6 Nov 2016 16:11:28 +0000 (17:11 +0100)]
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.
Kai Moritz [Sun, 6 Nov 2016 15:15:51 +0000 (16:15 +0100)]
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
Kai Moritz [Sun, 6 Nov 2016 14:33:12 +0000 (15:33 +0100)]
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).
Kai Moritz [Thu, 10 Mar 2016 07:43:10 +0000 (08:43 +0100)]
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.
Kai Moritz [Mon, 21 Dec 2015 16:01:42 +0000 (17:01 +0100)]
Fixed bug regarding the skipping of unmodified builds
If a property or class was removed, its value or md5sum stayed in the set
of md5sums, so that each following build (without a clean) was juged as
modified.
Kai Moritz [Sun, 20 Dec 2015 12:32:48 +0000 (13:32 +0100)]
Fixed bug: the execution is no more skipped after a failed build
After a failed build, further executions of the plugin were skipped, because
the MD5-summs suggested, that nothing is to do because nothing has changed.
Because of that, the MD5-summs are now removed in case of a failure.
Kai Moritz [Wed, 16 Dec 2015 21:09:00 +0000 (22:09 +0100)]
Introduced the goal "drop"
* Fixed integration-test hibernate4-maven-plugin-envers-sample by adapting
it to the new drop-goal
* Adapted the other integration-tests to the new naming schema for the
create-script
Kai Moritz [Wed, 16 Dec 2015 17:08:56 +0000 (18:08 +0100)]
Reworked configuration and the tracking thereof
* Moved common parameters from CreateMojo to AbstractSchemaMojo
* Reordered parameters into sensible groups
* Renamed the maven-property-names of the parameters
* All configuration-parameters are tracked, not only hibernate-parameters
* Introduced special treatment for some of the plugin-parameters (export
and show)
Kai Moritz [Fri, 16 Oct 2015 10:16:30 +0000 (12:16 +0200)]
Refined reimplementation of the plugin for Hibernate 5.x
Renamed the plugin from hibernate4-maven-plugin to hibernate-maven-plugin,
because the goal is, to support all recent older versions with the new
plugin.
Kai Moritz [Tue, 12 May 2015 20:13:23 +0000 (22:13 +0200)]
Upgraded scannotation from 1.0.3 to 1.0.4
This fixes the bug that occures on some platforms, if the path contains a
space. Created a fork of scannotation to bring the latest bug-fixes from SVN
to maven central...
Kai Moritz [Tue, 11 Nov 2014 14:10:32 +0000 (15:10 +0100)]
Upgraded hibernate-validator from 4.3.2.Final to 5.1.3.Final
Hibernate Validator 5 requires the Unified Expression Language (EL) in
version 2.2 or later. Therefore, a dependency to javax.el-api:3.0.0 was
added. (Without that, the compilation of some integration-tests fails!)
Kai Moritz [Tue, 11 Nov 2014 13:32:42 +0000 (14:32 +0100)]
Upgraded hibernate-core, hibernate-envers, hibernate-validator and maven-core
* Upgraded hibernate-core from 4.3.1.Final to 4.3.7.Final
* Upgraded hibernate-envers from 4.3.1.Final to 4.3.7.Final
* Upgraded hibernate-validator from 4.3.1.Final to 4.3.2.Final
* Upgraded maven-core from 3.2.1 to 3.2.3