Commit Graph

230 Commits

Author SHA1 Message Date
Steve Ebersole 31eb3b82c5 HHH-14905 - Verify that custom JavaType and JdbcType registration combo works 2021-11-04 13:11:33 -05:00
Steve Ebersole 34cdd3077c HHH-14905 - Verify that custom JavaType and JdbcType registration combo works 2021-11-04 13:11:33 -05:00
Christian Beikov a4e406a54e * Add SqlTypes as analogy to java.sql.Types containing constants for Hibernate specified types
* Add FormatMapper for a pluggable JSON serialization and deserialization strategy
* Add native UUID type support for H2, Cockroach, PostgreSQL
* Add native INET type support for Cockroach, PostgreSQL
* Add native JSON type support for MySQL, Cockroach, PostgreSQL
* Add native INTERVAL SECOND type support for H2, Cockroach, PostgreSQL
* Add fallback JdbcTypes for new SqlTypes
* Register column types for new SqlTypes
* Add support for BasicTypeReference in TypedParameterValue
* Fix a lot of method signatures with respect to type parameter issues
* Fix CustomType, UserType and EnhancedUserType with respect to type parameters
* Get rid of StringRepresentableType and some other unused deprecated methods
2021-10-19 16:33:36 +02:00
Steve Ebersole 0be2bcc0ca make Antlr runtime an explicit implementation dependency 2021-10-11 13:55:56 -05:00
Steve Ebersole abc8225e9d at the moment we expose `antlr` as an implementation dependency, which is exposed as a compile dependency. Instead use `antlr_runtime` as a runtime-only dependency and `antlr` for the `AntlrPlugin` 2021-10-07 13:10:53 -05:00
Steve Ebersole 998caa56af HHH-14848 - Move Ant tasks + support from hibernate-core into tooling/hibernate-ant 2021-09-29 01:31:47 -05:00
Steve Ebersole 84629e314d HHH-14837 - Move to Jakarta EE
fix-ups from the latest rebase (Bean Validation integration);
still looking into the incompatible class changes problem
2021-09-27 10:02:20 -05:00
Steve Ebersole 7bc1d55cdd improved aggregated javadoc generation 2021-09-27 08:21:36 -05:00
Steve Ebersole 679a919203 HHH-14837 - Move to Jakarta EE
improved support for schema tooling settings
2021-09-27 08:21:36 -05:00
Steve Ebersole a9387033b2 HHH-14837 - Move to Jakarta EE
- fixups
2021-09-27 08:21:36 -05:00
Steve Ebersole 089a3f86ae HHH-14837 - Move to Jakarta EE
preliminary transformation;
only `javax.persistence.*` settings supported atm
2021-09-27 08:21:27 -05:00
Christian Beikov 07f6d31d2b Fix missing table reference issues by translating all SqmRoots and SqmJoins to proper path interpretations 2021-09-23 18:04:02 +02:00
Steve Ebersole 60e97bcfca Allow for PU jar-file entries as relative file paths (intended for testing) 2021-09-02 14:02:46 -05:00
Andrea Boriero cdeb95a4d5 Merge remote-tracking branch 'upstream/main' into wip/6.0 2021-08-30 14:07:19 +02:00
Sanne Grinovero 9267c5e6a6 HHH-14792 Remove support for bytecode enhancement via Javassist 2021-08-26 15:22:30 +01:00
Steve Ebersole 6803c09645 fixes for Antlr tasks 2021-08-20 18:27:46 -05:00
Steve Ebersole 83ac9d5d3d xjc task config 2021-08-20 13:41:55 -05:00
Steve Ebersole 3b78f30309 Few Gradle file related tasks
- dropped explicit apt output handling - Gradle has that built in
- Switched other uses to write to the standard `${buildDir}/generated/sources` dir
2021-08-02 16:35:16 -05:00
Steve Ebersole 9f2ae95397 Gradle task cache
Gradle 7 prep
2021-07-26 13:51:38 -05:00
Andrea Boriero c06788dd88 Re-enabled additional tests 2021-07-26 16:43:26 +02:00
Steve Ebersole e2e93e51b7 improvements to JAXB XJC handling 2021-07-19 16:45:50 -05:00
Steve Ebersole b26b00a358 Bump matrix testing plugin to 3.1.0 (prep for Gradle 7) 2021-07-14 11:44:35 -05:00
Steve Ebersole 58517b99d1 Fix concurrency issue with Jakarta processing 2021-07-01 08:26:52 -05:00
Steve Ebersole 59f033194a Improved build configuration to better leverage Gradle up-to-date handling;
Preparation for moving to Gradle 7.0

- Moved custom Antlr plugin to hibernate-orm-build module
- more deprecation clean ups
2021-06-28 15:59:35 -05:00
Andrea Boriero 6ca0be6d99 Merge remote-tracking branch 'upstream/main' into wip/6.0 2021-06-22 09:09:30 +02:00
Steve Ebersole 4734897601 Enable more tests 2021-06-16 09:21:48 -05:00
Christian Beikov 107849c3c8 Fix jakarta sources transformation issues 2021-06-16 08:37:14 +02:00
Andrea Boriero 451568f322 Merge remote-tracking branch 'upstream/main' into wip/6.0_merge_7 2021-05-31 14:55:18 +02:00
Christian Beikov 8c9330a8ff Fix jakarta tests 2021-05-25 18:11:29 +02:00
Andrea Boriero ffae5474a6 Merge remote-tracking branch 'upstream/main' into wip/6.0_merge_6 2021-05-24 20:41:03 +02:00
Steve Ebersole c7e37dc1d7 HHH-14513 : Move publishing release and snapshot artifacts to Sonatype OSSRH 2021-05-14 15:06:15 -05:00
Steve Ebersole 71515af5cc HHH-14589 - Make sure documentation examples regarding basic-types work and update the section
- re-enable the basic-type tests in the `documentation` module
- fix basic-type resolution in various cases from tests in both `hibernate-core` and `documentation`
- updated the basic_types.adoc user-guide section + moved much of the "legacy" discussion to an appendix
- fixed missing impls of the optional contract `org.hibernate.type.AdjustableBasicType`
- improved handling of `NationalizationSupport` offered by a Dialect

NOTE :
- changes to `ColumnTransformerTest` are related to "composite basics" not being supported, not problems with `ColumnTransformer`.
- final failure in `org.hibernate.userguide.mapping.basic` is `SubselectTest#testRefreshLifecycle` which actually fails because refresh is not working properly
2021-05-13 09:58:20 -05:00
Christian Beikov ff9e9eebc9 HHH-13946 Create Jakarta artifacts for hibernate-core, hibernate-envers, hibernate-jpamodelgen and hibernate-testing 2021-04-30 11:41:05 +02:00
Andrea Boriero c48606a5aa Merge remote-tracking branch 'upstream/main' into wip/6.0_merge_1 2021-04-20 09:45:47 +02:00
Yoann Rodière 4264bc55ac HHH-14563 Remove the DOM4J dependency from hibernate-core 2021-04-19 15:39:35 +02:00
Andrea Boriero badc99705a Merge remote-tracking branch 'upstream/main' into wip/6.0_merge 2021-04-16 13:19:16 +02:00
Yoann Rodière 2907c95cbd HHH-14529 Introduce JAXB bindings for JPA's orm.xml
Adapted from Steve's work on the unified JPA/ORM XML mapping. See:
4ff3795e60 (diff-b407928c3aa7ee1f231e0119ff70345caa5f6a83ed6348128c5159afbe3c6df2)
https://github.com/sebersole/hibernate-orm/compare/jandex-binding

Co-authored-by: Steve Ebersole <steve@hibernate.org>
2021-04-15 14:01:28 +02:00
Andrea Boriero e67d10ee6c Merge remote-tracking branch 'upstream/main' into wip/6.0 2021-04-07 09:19:21 +02:00
Christian Beikov b166e684e1 Skip certain LockTests for Oracle on GH Actions which don't work there 2021-04-06 16:12:19 +02:00
Steve Ebersole 31b1627baa HHH-14506 - IdentifierGenerator changes
- HHH-14491 - Apply default allocation/increment size for @GeneratedValue(AUTO)
- HHH-14492 - Prefer sequence-per-entity (hierarchy) by default
- HHH-14497 - Drop `hibernate.id.new_generator_mappings` & `hibernate.model.generator_name_as_sequence_name`
- enabled existing tests and convert to JUnit5
2021-03-17 18:00:22 -05:00
Andrea Boriero 6d124a7c6d Merge remote-tracking branch 'upstream/master' into wip/6.0 2021-01-14 11:34:06 +01:00
Yoann Rodière 6396cd17a2 HHH-14371 Open java.base/java.lang to the unnamed module in javassist tests
Signed-off-by: Yoann Rodière <yoann@hibernate.org>
2020-12-14 14:02:18 +00:00
Yoann Rodière 8e3bf43a18 HHH-14371 Open java.base/java.security and java/base/java.lang to the unnamed module in tests
Weld needs this, in CDI tests.

Signed-off-by: Yoann Rodière <yoann@hibernate.org>
2020-12-14 14:02:18 +00:00
Yoann Rodière 27c5980a20 HHH-14371 Open java.base/java.nio.charset to the unnamed module in tests
NamingHelper test needs access to Charset.defaultCharset.

Signed-off-by: Yoann Rodière <yoann@hibernate.org>
2020-12-14 14:02:18 +00:00
Yoann Rodière f6a9338f97 HHH-14371 Correctly set JVM args in the JVM running tests
Turns out getJvmArgs() returns a copy, so modifying that copy won't
change the JVM args.

Signed-off-by: Yoann Rodière <yoann@hibernate.org>
2020-12-14 14:02:18 +00:00
Yoann Rodière 85b84ef6bd HHH-14315 Force JVM options when using toolchains
Apparently Gradle won't just use the same options as in its own JVM.

Signed-off-by: Yoann Rodière <yoann@hibernate.org>
2020-11-10 11:02:08 +00:00
Yoann Rodière 9616e24c80 HHH-14315 Add optional support for toolchains to the Gradle build
Signed-off-by: Yoann Rodière <yoann@hibernate.org>
2020-11-10 11:02:08 +00:00
Andrea Boriero 798f327f68 Revert "fix issue with not compiling tests"
This reverts commit fc914ea647.
2020-07-30 18:32:38 +01:00
Andrea Boriero fc914ea647 fix issue with not compiling tests 2020-07-30 18:08:35 +01:00
Nathan Xu 61cd51a4c8 get rid of javassist 2020-07-30 10:15:26 -05:00