Commit Graph

9521 Commits

Author SHA1 Message Date
Yoann Rodière bf7f56e004 HHH-13022 Allow to fall back to the OSGi-provided TCCL during bootstrap
We previously erased that class loader, which is not a great idea, in
particular when we use libraries such as JAXB which rely on the TCCL, to
some extent.

Without this patch, we cannot make the OSGi integration work correctly
with Java 9 and above, because the JAXB APIs won't find the JAXB
runtime.
2018-10-22 17:05:46 +02:00
Yoann Rodière 6ef94f3ba7 HHH-13022 Include karaf logs into test output files 2018-10-22 17:05:46 +02:00
Yoann Rodière c3c46b5019 HHH-13022 Re-enable OSGi tests when using JDK9/JDK10/JDK11 2018-10-22 17:05:45 +02:00
Yoann Rodière eaf7785877 HHH-13022 Upgrade to Apache Karaf 4.2.1 2018-10-22 17:05:45 +02:00
Yoann Rodière 0a13b8d640 HHH-13022 Add missing versions to internal OSGi feature dependencies 2018-10-22 17:05:45 +02:00
Yoann Rodière 9726fde68d HHH-13022 Fix indentation in hibernate-osgi.gradle 2018-10-22 17:05:45 +02:00
John Lin fb2fd3ed4b HHH-13056 Fix typo in documentation: "listner" should be "listener" 2018-10-22 16:05:54 +08:00
Steve Ebersole c49ebe888a HHH-12713 - Make EntityGraph creation more convenient
- documentation tests only run on H2Dialect
2018-10-21 16:15:37 -05:00
Steve Ebersole 5e8781f8fa HHH-12713 - Make EntityGraph creation more convenient 2018-10-19 12:10:15 -05:00
Aleks 526ebb4e0b HHH-12713 - Make EntityGraph creation more convenient 2018-10-19 12:02:15 -05:00
Yanming Zhou 2a5f270d40 Remove duplicated "an" from javadocs
Signed-off-by: Yanming Zhou <zhouyanming@gmail.com>
2018-10-19 11:30:56 +08:00
Sanne Grinovero 76274bf33e HHH-13048 Allow for parallel processing of entity enhancements via ByteBuddy 2018-10-18 18:53:00 +01:00
Sanne Grinovero aae9cd14a5 HHH-13047 Deprecate Environment#verifyProperties 2018-10-18 11:48:48 +01:00
Vlad Mihalcea 1fb77629e2 HHH-13040 - MetadataBuilderContributor should be applied before MetadataBuildingProcess.prepare 2018-10-17 12:40:00 +02:00
Vlad Mihalcea b46a277619 HHH-13012 - JDBC default connection release mode does not match documentation 2018-10-17 12:30:54 +02:00
Guillaume Smet 3fec3b930b HHH-12425 Move afterInitialize() phase after the collection initialization 2018-10-17 12:23:39 +02:00
Guillaume Smet 05d538ee15 HHH-12425 Fix a toString() implementation 2018-10-17 12:23:39 +02:00
Guillaume Smet 738a6c55e0 HHH-12425 Fix a few issues in the enhancer 2018-10-17 12:23:39 +02:00
Guillaume Smet 2c041447c2 HHH-12955 Avoid a warn message by updating SchemaAutoTooling values
Some valid values of hibernate.hbm2ddl.auto were not present in this
class, whereas they should have been.
2018-10-17 12:22:20 +02:00
Yoann Rodière 653b123276 HHH-12990 Remove unnecessary dependencies to JSR-250 when generating JAXB classes
It seems these dependencies were not necessary at all, even before the
previous patches.
2018-10-17 11:50:45 +02:00
Yoann Rodière 165cc74fb5 HHH-12990 Remove now unnecessary dependencies to JSR-250 when using jpamodelgen
The previous commit ensured we don't need them anymore.
2018-10-17 11:50:45 +02:00
Yoann Rodière e436b316da HHH-12990 Auto-detect the fqcn of the Generated annotation in jpamodelgen
It's "javax.annotation.Generated" in Java 8 and below, but
"javax.annotation.processing.Generated" in Java 9 and above.
2018-10-17 11:50:45 +02:00
Yoann Rodière 5fd97472b9 HHH-12946 Enable JAXB dependencies regardless of the JDK being used when building Hibernate ORM
Previously we would only add the dependency when building with JDK9+,
and we built all releases using JDK8.
This means the dependencies were useless, because they would never be
mentioned in the actual POMs published to users.
2018-10-17 11:43:03 +02:00
Yoann Rodière 68e20f4f8b HHH-12946 Target JDK11 instead of JDK10 in terms of JDK API compatibility 2018-10-17 11:43:03 +02:00
Yoann Rodière 0924138b75 HHH-12946 Upgrade to fobiddenapis 2.6 (compatible with JDK11) 2018-10-17 11:43:03 +02:00
Yoann Rodière 2daa3811c6 HHH-12946 Remove unnecessary dependencies when building with JDK9+
We don't need to depend on JAXB's compiler (XJC) in our modules,
we just need the dependency in specific tasks during the build.
In particular we don't want users to transitively depend on XJC.

Also, we don't need an explicit dependency to JAXB in every module,
having one in hibernate-core is enough.
2018-10-17 11:43:03 +02:00
Yoann Rodière 51ab9f744d HHH-12946 Add explicit dependencies to JAXB APIs where relevant 2018-10-17 11:43:03 +02:00
Yoann Rodière 2b3a5e5a2e HHH-12946 Depend on org.glassfish.jaxb:jaxb-runtime instead of the obsolete com.sun.xml.bind:jaxb-impl
Apparently both sets of coordinates work, but the com.sun.xml.bind one
is older and deprecated.
2018-10-17 11:43:03 +02:00
Yoann Rodière 530ab1569e HHH-12946 Use constants for JAXB dependencies instead of inline strings
We may have to update these dependencies, let's make it easy.
2018-10-17 11:43:03 +02:00
Guillaume Smet bb822aee31 HHH-12935 Make ExportIdentifierTests extend BaseUnitTestCase 2018-10-16 23:54:51 +02:00
Gail Badner a09e6156f9 HHH-13011 Fix the tests: use int column in where clause 2018-10-16 14:17:04 -07:00
Guillaume Smet 66d9859813 HHH-12935 Require sequence support in ExportIdentifierTests 2018-10-16 19:23:41 +02:00
Guillaume Smet 552c3da1b6 HHH-13011 Fix the tests: use a boolean query 2018-10-16 19:18:03 +02:00
Guillaume Smet 18f4ecfdfe HHH-13011 Fix the tests: use a boolean query 2018-10-16 18:24:29 +02:00
Fabio Massimo Ercoli 17804ce4e7 HHH-13013 Upgrade Arquillian versions 2018-10-16 15:31:49 +02:00
Fabio Massimo Ercoli 84259292b2 HHH-13013 Upgrade WildFly version 2018-10-16 15:31:49 +02:00
Gail Badner aa586c117f HHH-13011 : Document hibernate.use_entity_where_clause_for_collections in the user guide 2018-10-16 15:12:06 +02:00
Gail Badner d1a40af1b7 HHH-13011 : test cases 2018-10-16 15:12:06 +02:00
Gail Badner 4735c2d5aa HHH-13011 : Add option enabling/disabling use of an entity's mapped where-clause when loading collections of that entity 2018-10-16 15:12:06 +02:00
Gail Badner 19dd186d11 HHH-12104 : Test cases using annotations and hbm.xml 2018-10-16 15:12:06 +02:00
Guillaume Smet 7615df2ddf HHH-13038 Upgrade ByteBuddy to 1.9.2 2018-10-16 15:10:00 +02:00
Fabio Massimo Ercoli 974ffdd402 HHH-13001 Add test case
(cherry picked from commit 488916cca4)
2018-10-16 07:48:42 -05:00
Steve Ebersole a2b26b81b3 HHH-13001 - NPE rendering nested criteria expressions 2018-10-16 07:45:58 -05:00
Guillaume Smet 23c6565f72 HHH-12937 Only run the tests with H2Dialect 2018-10-16 14:22:31 +02:00
Gail Badner 4d381457c5 HHH-12935 : Constraint and AuxiliaryDatabaseObject export identifiers are not qualified by schema or catalog 2018-10-16 03:59:10 -07:00
Gail Badner 3806d27f08 HHH-12935 : test cases 2018-10-16 03:59:10 -07:00
Guillaume Smet e4aecf7d4f HHH-13036 Upgrade HikariCP to 3.2.0 2018-10-16 12:06:00 +02:00
Guillaume Smet 1f27e1f45a HHH-13037 Upgrade Vibur to 22.2 2018-10-16 12:06:00 +02:00
Guillaume Smet 8a6d5e711a HHH-13035 Upgrade Agroal to 1.2 2018-10-16 12:06:00 +02:00
Guillaume Smet 8c00814dbe HHH-13033 Upgrade ByteBuddy to 1.9.1 2018-10-16 10:28:44 +02:00