Commit Graph

9610 Commits

Author SHA1 Message Date
Yoann Rodière e7cefd8ddd HHH-13409 Rework AggregatedServiceLoader to minimize the risk of regression
In particular:

* Keep the old behavior when retrieving services on JDK8
* On JDK9+, query the AggregatedClassLoader first (before individual
class loaders) when retrieving services.
* On JDK9+, use ServiceLoader.Provider to avoid instantiating services
a second time if we know we already instantiated them with another class
loader.
2019-06-20 21:07:03 +01:00
Yoann Rodière 9b34fc69a3 HHH-13409 Make AggregatedServiceLoader compatible with the module path (JDK9+) 2019-06-20 21:07:03 +01:00
Yoann Rodière fc52db5cb4 HHH-13409 Move aggregated service loading to a dedicated component
So that we can provide a different implementation for Java 9+.
2019-06-20 21:07:03 +01:00
Yoann Rodière b7e5106358 HHH-13409 Remove unnecessary "public" keywords in ClassLoaderService 2019-06-20 21:07:03 +01:00
Yoann Rodière d6cb72ee0d HHH-13409 Add integration tests for running Hibernate ORM in the module path in Java 11+ 2019-06-20 21:07:03 +01:00
Yoann Rodière 6b199d2e52 HHH-13154 Add support for JPA criteria on stateless sessions 2019-06-20 13:13:17 +02:00
Yoann Rodière fd1963a6a2 HHH-13154 Backport BasicCriteriaExecutionTests from ORM 6 2019-06-20 13:13:17 +02:00
Sanne Grinovero ae1016a1c4 HHH-13444 Remove ignored EntityMode field from CollectionKey 2019-06-19 21:49:40 +01:00
Andrea Boriero 7f326b163b HHH-13442 - CollectionType#getCollection() method improvements 2019-06-19 16:00:24 +01:00
Andrea Boriero e8993eb688 HHH-11147 - Fix Oracle failing test 2019-06-17 13:18:19 +01:00
Andrea Boriero e6401ca4c4 HHH-11147 - Add test case LazyCollectionDeletedAllowProxyTest 2019-06-17 13:18:19 +01:00
Andrea Boriero 2e1d602f68 HHH-11147 - Allow enhanced entities to be returned in a completely uninitialized state
- Add test using IdClass
2019-06-14 09:31:29 -05:00
Steve Ebersole 94c49aaaa6 HHH-11147 - Allow enhanced entities to be returned in a completely uninitialized state 2019-06-14 08:22:07 -05:00
Andrea Boriero 48d88cfef6 HHH-11147 - Add failing test 2019-06-14 12:43:14 +01:00
Steve Ebersole cc01f2561d HHH-11147 - Allow enhanced entities to be returned in a completely uninitialized state
HHH-11161 - do not force initialize collection at all
2019-06-13 12:52:38 -05:00
Yoann Rodière d6bd291934 Force the use of Ubuntu Trusty in the Travis build
If we don't force it, Travis will pick a release at random,
either Trusty or Xenial at the moment.

Using Oracle JDK 8 on Xenial is not easy, for some reason.

See:

* https://travis-ci.community/t/oracle-jdk-11-and-10-are-pre-installed-not-the-openjdk-builds/785/15
* https://github.com/travis-ci/travis-ci/issues/10289
2019-06-13 12:51:43 -05:00
Yoann Rodière ae5023cf53 Do not log test progress by default, but provide a build option and enable it for Travis
So that the build isn't too verbose when running it locally.
2019-06-13 04:49:08 -05:00
Sanne Grinovero 29d5548160 HHH-13429 Upgrade WildFly provisioning plugin to version 0.0.11 2019-06-08 14:53:03 +01:00
Sanne Grinovero a72d5e3d1e HHH-13428 No longer allow fetching snapshot dependencies from JBoss Nexus 2019-06-07 23:06:27 +01:00
Yoann Rodière 8e439b01b0 HHH-13428 Remove an unnecessary test dependency to woodstox
It has split packages and won't work when running tests in the module
path. But more importantly we just don't use it.
2019-06-07 20:22:21 +01:00
Sanne Grinovero 2689dd141b HHH-13428 Upgrade to Microsoft SQL Server JDBC 7.2.1 2019-06-07 20:19:33 +01:00
Sanne Grinovero 73a29867f5 HHH-13428 Remove more unused repositories 2019-06-07 20:19:26 +01:00
Sanne Grinovero 182e5dd56f HHH-13428 Use https in documentation too 2019-06-07 20:19:17 +01:00
Sanne Grinovero 7cc1ea88df HHH-13428 Remove unused repository URLs 2019-06-07 20:19:12 +01:00
Yoann Rodière 8f344af218 Get rid of travis_wait in .travis.yml
... so that we get actionable logs when something fails.
2019-05-31 18:53:06 +02:00
Yoann Rodière eacbe616d4 HHH-13415 Run Travis tests on JDK11 too
Use OpenJDK 11.0.3 instead of OracleJDK 11.0.2 in the Travis build,
because 11.0.2 just fails because of a bug in javadoc generation.
2019-05-31 14:11:47 +02:00
Yoann Rodière 00c697780e HHH-13415 Clean up the places where we fix fix javadoc generation for JDK11 2019-05-31 14:11:47 +02:00
Yoann Rodière a7006fa226 HHH-13415 Add more comments where we disable OSGi tests with JDK11
Karaf or Pax Exam (don't know which) has serious issues with JDK 11.0.3.
2019-05-31 14:11:47 +02:00
Guillaume Smet d5a1d24116 Prepare next development iteration 2019-05-30 17:22:10 +02:00
Guillaume Smet 9508e65485 5.4.3.Final 2019-05-30 16:15:34 +02:00
Guillaume Smet c6671d504b HHH-13421 Disable OSGi testing for JDK 11+ 2019-05-29 22:57:52 +02:00
Guillaume Smet e376fe0aef HHH-13419 Support building javadoc with JDK 11.0.3+ 2019-05-29 22:57:52 +02:00
John OHara 313f5f7186 HHH-13418 : Revert log level caching 2019-05-29 10:29:12 +02:00
Sanne Grinovero 4be05af86d HHH-13416 Unguarded debug message being rendered in org.hibernate.engine.internal.Collections.processReachableCollection 2019-05-27 16:13:03 +01:00
Gail Badner b7b8f44298 HHH-13266 HHH-13357 : Skip OffsetTimeTest#nativeWriteThenRead and #writeThenRead in some cases due to HHH-13357
when Time is remapped as Timestamp and default JVM is not GMT
2019-05-01 11:22:16 -07:00
Gail Badner 800b60e648 HHH-13364 : Added a test using a named query 2019-04-17 11:13:23 -07:00
Gail Badner f62913ba1c HHH-13364 : Query.getSingleResult and getResultList() throw PessimisticLockException when pessimistic lock fails with timeout 2019-04-17 11:13:23 -07:00
Gail Badner 288afa35e0 HHH-13364 : Added test cases 2019-04-17 11:13:23 -07:00
Steve Ebersole 4d79ffb62f HHH-13152 - managed/cached entities and fetching (test case) 2019-04-16 13:45:38 -05:00
Steve Ebersole 73e5688c35 HHH-11223 - minor logging additions plus a test case 2019-04-15 16:11:58 -05:00
Gail Badner 0506b4aa46 HHH-13343 : Bytecode enhancement using ByteBuddy fails when the class is not available from the provided ClassLoader 2019-04-05 13:01:37 -07:00
Gail Badner a2a5799a13 HHH-13343 : Bytecode enhancement using ByteBuddy fails when the class is not available from the provided ClassLoader 2019-04-05 13:01:37 -07:00
Gail Badner a2cb264a27 HHH-13343 : test case 2019-04-05 13:01:37 -07:00
Guillaume Smet 823a5c1ede Prepare for next development iteration 2019-03-21 18:32:23 +01:00
Guillaume Smet 08e9d01caa 5.4.2.Final 2019-03-21 16:05:07 +01:00
Gail Badner b28dc488a1 HHH-13241 : Fix regression with an uninitialized null many-to-one association 2019-03-20 22:30:42 -07:00
Gail Badner 65eebbb96b HHH-13241 : Added test case with a lazy null many-to-one association 2019-03-20 22:30:42 -07:00
Thomas Bürli 926e1da2d5 HHH-13332 Update c3p0 to 0.9.5.3
Update c3p0 dependency to addresses the XXE vulnerability (CVE-2018-20433)
2019-03-20 21:40:27 +01:00
Gail Badner 883465f525 HHH-13326 : Transaction passed to Hibernate Interceptor methods is null when JTA is used 2019-03-20 17:22:43 +01:00
Gail Badner 705ecec94f HHH-13326 : test cases 2019-03-20 17:22:43 +01:00