Commit Graph

9736 Commits

Author SHA1 Message Date
Chris Cranford eff27db90a HHH-12992 - Fix proper support for order-by annotation on audited entity associations. 2018-10-30 15:34:03 -04:00
Chris Cranford 334e064272 HHH-12992 - Added test cases. 2018-10-30 15:34:03 -04:00
Chris Cranford 10148324d1 HHH-10201 - Fix element-collection attributes to always be audited if parent is audited. 2018-10-30 15:25:35 -04:00
Chris Cranford 42fe168056 HHH-10201 - Added test cases. 2018-10-30 15:25:35 -04:00
Yoann Rodière 0d8db10fcb HHH-12713 Restore backward compatibility for users of org.hibernate.metamodel.spi.MetamodelImplementor
* Move the interface back from org.hibernate.metamodel.model.domain.spi to org.hibernate.metamodel.spi
* Restore method addNamedEntityGraph(String graphName, EntityGraph<T> entityGraph)
* Make sure that findEntityGraphsByType returns List<EntityGraph<? superT>> once again,
and not List<RootGraphImplementor<? super T>>.
2018-10-29 10:59:13 -05:00
Steve Ebersole d0fb16dded HHH-12713 - Make EntityGraph creation more convenient
- unify naming between 5.x and 6.0 wrt EntityGraph support added in 5.4
2018-10-29 10:59:13 -05:00
Vlad Mihalcea 3bf530d5e8 HHH-13062 - Migrate User Guide links from Java EE 7 to 8 2018-10-26 09:22:35 +03:00
Guillaume Smet 2517fbfe6f HHH-13064 Fix Lock and LockModeType table 2018-10-25 19:10:41 +02:00
Sanne Grinovero 04fbabce2e HHH-13061 Introduce a 'none' option for BytecodeProvider implementation choice 2018-10-25 16:39:34 +02:00
Vlad Mihalcea 817e463764 HHH-13060 - Throw an exception when two entities are declared with the same name 2018-10-25 17:34:36 +03:00
Fabio Massimo Ercoli 45083813bd HHH-12751 Remove hibernate-infinispan OSGi feature 2018-10-25 15:11:56 +02:00
Vlad Mihalcea 52e72f5d38 HHH-12979 - Setting hibernate.javax.cache.uri property value as relative path causes an error
Resolve the hibernate.javax.cache.uri using the ClassLoaderService.

Strip the classpath:// prefix if not resolved by new URL() in ClassLoaderService.
This way, if a framework (e.g. Spring) has installed a handler for classpath://, the resource is resolved with its handler and class loader.
If not, we remove the classpath:// prefix and we resolve the resource with our classloader.
2018-10-25 09:59:23 +03:00
John Lin fecb12cff7 HHH-13041 - Move @Any and other association mappings to the association chapter 2018-10-25 08:43:03 +03:00
Sanne Grinovero 06b559e46e HHH-13057 Prevent Byte Buddy's Advice helper to reload to many resources from the ClassLoader 2018-10-23 16:40:29 +01:00
Guillaume Smet 1d62d4aaf0 HHH-13039 Upgrade Agroal to 1.3 2018-10-22 17:44:28 +02:00
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