Commit Graph

9358 Commits

Author SHA1 Message Date
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
Guillaume Smet 6dd6ac041d HHH-13034 Upgrade Hibernate Validator test dependency to 6.0.13.Final 2018-10-16 10:26:29 +02:00
Jonathan Bregler d4ad0df883 HHH-12937 Fix tests on SAP HANA
The following tests fail because of a DROP TABLE statement without CASCADE
- org.hibernate.test.where.annotations.LazyElementCollectionBasicNonUniqueIdWhereTest
- org.hibernate.test.where.annotations.LazyElementCollectionWithLazyManyToOneNonUniqueIdWhereTest
- org.hibernate.test.where.hbm.LazyElementCollectionBasicNonUniqueIdWhereTest
- org.hibernate.test.where.hbm.LazyElementCollectionWithLazyManyToOneNonUniqueIdWhereTest
2018-10-16 10:06:56 +02:00
Guillaume Smet 9ead103044 HHH-12978 Properly initialize the converters on deserialization 2018-10-16 09:59:17 +02:00
Gail Badner ae2da95f55 HHH-12937 : Remove duplicated line 2018-10-15 23:21:56 -07:00
Gail Badner eb14b8de6f HHH-12937 : Where clause for collections of basic, embeddable and "any" elements is ignored when mapped using hbm.xml 2018-10-15 23:21:56 -07:00
Gail Badner da50076afc HHH-12937 : test cases 2018-10-15 23:21:56 -07:00
Baptiste Mathus f2b82449da HHH-9038 Fix HSQLDB dialect for non-existing constraints.
This commits relates to https://hibernate.atlassian.net/browse/HHH-7002.
It basically removes the explicit constraints dropping, and uses
cascading instead.

As HSQLDB requires to put CASCADE last, but fortunately accepts IF
EXISTS also before tablename, we just put the IF EXISTS *before* the
tablename, and CASCADE after it. And there you go.
2018-10-15 11:01:55 +02:00
Vlad Mihalcea e55c3bbb7e HHH-12978 - Enum value binding is not logged by BasicBinder 2018-10-15 09:36:20 +03:00
Bas van Schaik dd65933906 Add LGTM.com code quality badge 2018-10-13 00:21:27 +01:00
Sanne Grinovero e15a9080ea HHH-12762 No longer needing to use port-offset in WildFly integration tests 2018-10-13 00:02:50 +01:00
Gail Badner 1763bfb51f HHH-13027 : org.hibernate.ejb.HibernatePersistence can no longer be used as a persistence provider name 2018-10-12 23:51:12 +01:00
Gail Badner 6e7c1100a6 HHH-13027 : test case 2018-10-12 23:51:02 +01:00
Sanne Grinovero fcd3b56fdd HHH-13029 Avoid static singletons to hold on Strategy Registration Implementations 2018-10-12 23:25:50 +01:00