Commit Graph

229 Commits

Author SHA1 Message Date
Christian Beikov d87e8a387f HHH-14768 Fix recursive type variable rendering 2022-05-11 11:38:30 +02:00
Christian Beikov 96c96c67ea HHH-14724 Fix generation of problematic metamodel classes which use TYPE_USE annotations 2022-05-11 11:38:30 +02:00
Thomas Heigl 1411e7bad3 HHH-14724 Add test for intersection types 2022-05-11 11:38:30 +02:00
Thomas Heigl ffd22681cd HHH-14724 Test-case demonstrating compilation issues with converters and validation 2022-05-11 11:38:30 +02:00
Vlad Mihalcea e7bf1b76b8 HHH-12338 - Incorrect metamodel for basic collections 2022-05-11 11:38:30 +02:00
Yoann Rodière 367ec2f276 HHH-14635 Upgrade to log4j 2 2021-12-13 12:45:06 +00:00
Yoann Rodière c73ea9e0dc HHH-14371 Add --add-opens options required for Gradle plugin tests
Signed-off-by: Yoann Rodière <yoann@hibernate.org>
2021-08-20 14:06:55 +01:00
Yoann Rodière 75ba67b6b2 HHH-14315 Add optional support for toolchains to the Gradle build
Signed-off-by: Yoann Rodière <yoann@hibernate.org>
2021-08-20 14:06:55 +01:00
Andrea Boriero b3ae29406a HHH-14640 : Fix checkstyle errors 2021-06-03 16:10:37 -07:00
Yoann Rodière 57077b52e3 HHH-14111 Ensure Groovy compilation tasks target the same JDK version as the rest of the project 2021-06-03 16:10:37 -07:00
Andrea Boriero 40d82d6370 HHH-14640 : Fix issue with generated pom missing project description 2021-06-03 16:10:37 -07:00
Yoann Rodière c36e2cc543 HHH-13925 Upgrade hibernate-gradle-plugin to Gradle 6 2021-06-03 16:10:37 -07:00
Yoann Rodière e7764ef76d HHH-13685 Upgrade to Gradle 5.6.3 2021-06-03 16:10:37 -07:00
Steve Ebersole 7eb0911fd6 HHH-12858 + HHH-13432 Persistence.createEntityManagerFactory(Map) should allow overwriting jta-data-source of persistence.xml
HHH-12858 - integration overrides during JPA bootstrap ought to override all logically related settings

    - e.g. a datasource passed in the integration overrides map ought to effectively override JDBC-connection settings in `persistence.xml` (and vice-versa)

HHH-13432 - Have EntityManagerFactory expose persistence.xml `jta-data-source` element as a `javax.persistence.nonJtaDataSource` property
2020-01-07 14:06:41 -08:00
Steve Ebersole 31d364483b HHH-13130 - Provide Gradle-based bytecode enhancement as a task separate from the compileJava task 2019-10-02 11:24:46 -07:00
Guillaume Smet c344455df9 HHH-13128 Add missing jaxb-runtime dependency to metamodel generator
It's necessary for JDK 11 and we missed it when we added the
jaxb-runtime dependency to hibernate-core.
2019-09-11 10:26:35 +02:00
Yoann Rodière acc7934173 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.
2019-09-11 10:26:35 +02:00
Yoann Rodière b151f396f6 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.
2019-09-11 10:26:35 +02:00
Yoann Rodière a69de05e44 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.
2019-09-11 10:26:35 +02:00
Yoann Rodière e6cd7d8495 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.
2019-09-11 10:26:35 +02:00
Yoann Rodière f9609f93b2 HHH-12946 Add explicit dependencies to JAXB APIs where relevant 2019-09-11 10:26:35 +02:00
Yoann Rodière 90c059aaa4 HHH-12946 Use constants for JAXB dependencies instead of inline strings
We may have to update these dependencies, let's make it easy.
2019-09-11 10:26:35 +02:00
Guillaume Smet 5163c82405 HHH-13097 Add a missing @Override 2019-02-07 17:44:52 -08:00
Chris Cranford 0d79bc06cf HHH-12612 - Added embeddable TYPE_USE test case coverage. 2018-05-24 17:01:36 -04:00
Chris Cranford 5674eae3ae HHH-12612 - Use getQualifiedName rather than toString. 2018-05-24 17:01:36 -04:00
Chris Cranford 45a3b39c40 HHH-12612 - Fix JDK9 compatibility with TYPE_USE on collection fields. 2018-05-23 19:10:58 -04:00
Chris Cranford 895b0bb75d HHH-12011 HHH 12612 - Remove unnecessary output from test case. 2018-05-23 19:08:50 -04:00
Chris Cranford df6d44f646 HHH-12581 - Revert original fix for HHH-12338 to address regression. 2018-05-23 13:57:44 -04:00
Chris Cranford 3b05e92f40 HHH-12581 - Added test case. 2018-05-23 13:57:35 -04:00
Chris Cranford f8ffbd03ff HHH-12011 - Fix JDK9 compatibility with TYPE_USE on array primitive-based fields. 2018-05-13 15:33:37 -04:00
Chris Cranford 2ad6bf6724 HHH-12011 - Use TypeVisitor rather than string parsing for array types. 2018-05-11 12:51:37 -04:00
Chris Cranford 67096ce547 HHH-12011 - Fix metamodel generation with TYPE_USE targeted annotations. 2018-05-11 12:48:20 -04:00
Chris Cranford 7162bf26ec HHH-12011 - Added test case. 2018-05-11 12:48:20 -04:00
helloztt 7bcfa0d90d HHH-12338 - Incorrect metamodel for basic collections 2018-03-29 17:22:49 +03:00
Réda Housni Alaoui 884569f9cc HHH-12378 JDK 9 support: Remove javax.annotation.Generated usage 2018-03-13 23:17:40 +00:00
Andrea Boriero 9d335961b8 HHH-12246 - Gradle build fails with Java 9 2018-01-24 14:51:36 +00:00
Guillaume Smet 203575865c HHH-12245 Don't use the toString() of primitive type to detect the type
Better use getKind().
2018-01-24 08:56:49 +00:00
Steve Ebersole 6e25c30812 HHH-12190 - General tidying of Gradle scripts 2018-01-16 14:34:43 -06:00
Steve Ebersole d806eff912 HHH-12190 - General tidying of Gradle scripts 2018-01-16 14:34:43 -06:00
barreiro ec211b9699 HHH-12095 - do not fork execution of hibernate-maven-plugin as it causes compilation to run twice 2017-12-30 09:43:02 -06:00
Sanne Grinovero 5c43ad571f Fix checkstyle violations 2017-12-19 10:02:43 +00:00
Réda Housni Alaoui 4efac1369a HHH-10294 EntityGraph improvement: For each jpa attribute, generate also a String constant holding the attribute field name 2017-12-18 06:49:56 -06:00
Vlad Mihalcea 3ab1974d66 HHH-11871 - Skip Metamodel attribute generation for non-Java Bean property methods
Fix indentation issue
2017-11-06 17:02:35 +02:00
Vlad Mihalcea 164178330a HHH-12073 - Change BaseUnitTestCase Logger to protected 2017-11-01 19:04:07 +02:00
Bogdan Stirbat f20fe860c9 HHH-11871 - Skip Metamodel attribute generation for non-Java Bean property methods 2017-11-01 15:44:40 +02:00
Archie L. Cobbs c3f61c73dd HHH-12068 - Fix generated @SuppressWarnings to work for all compilers 2017-10-30 11:28:58 +02:00
Andrea Boriero ca368f85a6 HHH-11507 - Upgrade to Gradle 4.2 2017-09-21 15:07:29 +01:00
barreiro 50ee618f1e HHH-10930 - Add explicit dependency on JTA to the maven enhacer plugin 2017-01-31 13:15:19 +02:00
barreiro ffe62ac68b HHH-11242 - Basic test case for the maven plugin 2017-01-18 18:55:23 -06:00
Andrea Boriero 9976edc853 HHH-11183 - Mixed line endings in schema creation script 2016-12-14 17:56:18 +02:00