Fixed the akquisition of a database-connection, if one is needed
authorKai Moritz <kai@juplo.de>
Sun, 13 Nov 2016 14:56:56 +0000 (15:56 +0100)
committerKai Moritz <kai@juplo.de>
Sun, 13 Nov 2016 16:37:15 +0000 (17:37 +0100)
commit653ab8054c9232471c3c1192d5074010f378a067
tree91cce33b6c82def066103d922260057c5df64c01
parentdc8cc2c0dc557f62e21607eda7835e658eca19fd
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.
src/it/hibernate-lob-converter-bug/create.sql [new file with mode: 0644]
src/it/hibernate-lob-converter-bug/pom.xml
src/it/hibernate-lob-converter-bug/src/main/java/io/blep/MyEntity.java [new file with mode: 0644]
src/it/hibernate-lob-converter-bug/src/main/resources/META-INF/persistence.xml [new file with mode: 0644]
src/it/hibernate-lob-converter-bug/src/test/java/io/blep/LobConverterTest.java [deleted file]
src/it/hibernate-lob-converter-bug/src/test/java/io/blep/MyEntity.java [deleted file]
src/it/hibernate-lob-converter-bug/src/test/resources/META-INF/persistence.xml [deleted file]
src/it/hibernate-lob-converter-bug/verify.bsh [new file with mode: 0644]
src/main/java/de/juplo/plugins/hibernate/SimpleConnectionProvider.java