1473 Commits

Author SHA1 Message Date
Andrea Boriero
dd36e349b1 Merge branch 'wip/6.0_merge' into wip/6.0 2021-10-19 16:36:48 +02: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
Christian Beikov
541302a511 Get rid of most basic type subclasses 2021-10-19 16:33:36 +02:00
Andrea Boriero
d2906c022e Upgrade org.asciidoctor.jvm.convert to 3.3.2 2021-10-19 16:23:42 +02:00
Andrea Boriero
7f46f11f3b Merge remote-tracking branch 'upstream/main' into wip/6.0_merge 2021-10-19 16:23:07 +02:00
nathan.xu
8cf51a601b HHH-14883 Fix an Asciidoc defect and other verbiage issues in 'spatial' chapter in user guide 2021-10-18 09:47:52 +01:00
Steve Ebersole
92e1f593dc Drop doc section on JACC 2021-10-12 10:48:02 -05:00
Steve Ebersole
48068e0311 HHH-14857 Deprecations in preparation for 6 2021-10-11 19:36:23 +01:00
Steve Ebersole
686d8fcbf1 HHH-14870 - Rename {Xyz}TypeDescriptor as {Xyz}Type
* `JavaTypeDescriptor` -> `JavaType`
* `JdbcTypeDescriptor` -> `JdbcType`
2021-10-11 13:13:13 -05:00
Steve Ebersole
3a0065eea4 HHH-14870 - Rename {Xyz}TypeDescriptor as {Xyz}Type
* `JavaTypeDescriptor` -> `JavaType`
* `JdbcTypeDescriptor` -> `JdbcType`
2021-10-11 13:11:32 -05:00
Christian Beikov
548df627e6 Implement global configuration and sketch out annotations for time zone storage configuration. Move type tests and add skips for some tests running into H2 bugs. Also, fix some jdbc type assertion tests 2021-10-11 16:11:46 +02:00
Christian Beikov
597f4bdf6a Get rid of JdbcTypeDescriptor remapping 2021-10-11 16:11:46 +02:00
Steve Ebersole
41603e8d75 Fix User Guide build problems 2021-10-08 09:18:58 -05:00
Steve Ebersole
d452b6e3ea HHH-14856 - Introduce @CustomType;
HHH-14865 - Re-work @Any and @ManyToAny support;
HHH-14863 - Compositional definition of basic value mappings;
HHH-14864 - Drop legacy Type-based annotations

* documentation work
2021-10-07 16:53:30 -05:00
Steve Ebersole
ede52e9aba HHH-14856 - Introduce @CustomType;
HHH-14865 - Re-work @Any and @ManyToAny support;
HHH-14863 - Compositional definition of basic value mappings;
HHH-14864 - Drop legacy Type-based annotations

* documentation work
* support for using most of the new mapping annotations related to basic and any mappings as meta-annotations
* support for `@Mutability` on AttributeConverter implementations
* additional tests in the User Guide's BitSet mapping Case Study
2021-10-07 16:46:35 -05:00
Steve Ebersole
9ad34c21d4 HHH-14856 - Introduce @CustomType;
HHH-14863 - Compositional definition of basic value mappings;
HHH-14864 - Drop legacy Type-based annotations;
HHH-14865 - Re-work @Any and @ManyToAny support;

* re-use BeanInstanceProducer
* Removed `@CollectionId#type`
* Change `@Any` / `@ManyToAny`
* Removed `@MapKeyType`
* Removed `@TypeDef`
* Removed `@TypeDefs`
* Removed `@Type`
* Removed `@AnyMetaDefs`
* Removed `@AnyMetaDef`
* Removed `@MetaValue`
2021-10-07 10:01:21 -05:00
Christian Beikov
710ebe57b0 Get rid of using specialized BasicType implementations and references to those and instead use a BasicTypeReference that is lazily resolved 2021-10-07 08:15:53 +02:00
Christian Beikov
1cb6ff8916 Cleanup naming of JavaTypeDescriptor and JdbcTypeDescriptor implementations. Get rid of PrimitiveType, IdentifierType, DiscriminatorType and AllowableTemporalParameterType 2021-10-07 08:15:53 +02:00
Christian Beikov
653f62ac60 Move VersionType logic to VersionJavaTypeDescriptor 2021-10-07 08:15:53 +02:00
Christian Beikov
81e66fa970 Get rid of LiteralType 2021-10-07 08:15:53 +02:00
Christian Beikov
9e83129fc3 Change JavaTypeDescriptor#fromString to accept a CharSequence instead of String and introduce CharSequence utilities to avoid creating intermediate strings 2021-10-05 15:18:38 +02:00
Andrea Boriero
8c40de9cff Merge remote-tracking branch 'upstream/main' into wip/6.0_merge_main_7 2021-10-01 11:34:10 +02:00
Christian Beikov
05f643f208 Move some more jpa.test subpackages to orm.test 2021-09-30 13:52:31 +02:00
Steve Ebersole
8a8a92ca5e HHH-14844 - Drop JACC integration 2021-09-29 01:08:07 -05:00
Steve Ebersole
986d65a288 HHH-14837 - Move to Jakarta EE
More settings work
2021-09-28 19:01:28 -05:00
Steve Ebersole
828b96522c HHH-14837 - Move to Jakarta EE
fix references to JPA as Jakarta Persistence
2021-09-27 15:13:33 -05:00
Steve Ebersole
7bc1d55cdd improved aggregated javadoc generation 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
Steve Ebersole
bd2f8271bd fix aggregateJavadoc task config 2021-09-23 08:32:46 -05:00
Karel Maesen
3995c644d1 HHH-14800 Implements suggestions from code review
- set version in deprecated Postgis dialects
- fast path for Contributor resolution
- add TODO label for Ignored tests
2021-09-21 11:55:41 +02:00
Karel Maesen
9316c161c7 HHH-14802 Update CockroachDB support for 6 2021-09-21 11:55:41 +02:00
Christian Beikov
77c1370e45 HHH-14642, HHH-13717 Various JPA Criteria related fixes
* Get rid of unnecessary whitespace and optional keywords in generated SQL
* Handle some type inference related issues with some databases requiring to render casted parameters in some situations
* Ensure SQM model is fully serializable
* Ensure JPA Criteria throws expected exceptions
* Make sure JPA Criteria implementations work properly
* Move jpa.test.callback and jpa.test.criteria packages
* Improve the reuse of SqmPath instances
* Get rid of many raw-types related warnings
* Make Predicate extend Expression and handle SQL rendering/emulation
* Support fetching SqmTuple as array
* Implement treat operator support
2021-09-09 16:39:31 +02:00
Christian Beikov
dd6efa509b Introduce internal init_sql config and by default enable ansinull for Sybase ASE 2021-09-02 16:54:46 +02:00
Christian Beikov
c71171a762 fixup! Ignore some tests that run into HSQLDB bugs 2021-09-02 16:54:46 +02:00
Christian Beikov
c16731d14a Cleanup docs, implement appendHqlString for DiscriminatorSqmPath and fix MapMember type 2021-09-02 16:54:46 +02:00
Christian Beikov
118b160b02 Introduce special str function implementation for T-SQL 2021-08-31 14:52:59 +02:00
Christian Beikov
b4a82f0854 Introduce TupleType for modelling structural types 2021-08-31 14:52:59 +02:00
Christian Beikov
1a3629a571 Fix some tests and config. Enable all documentation tests. Add profile for PG13 2021-08-31 14:52:59 +02:00
Christian Beikov
c01734adca Rely on fetch of version attribute mapping instead of creating domain result for version mapping for entity initializers to allow overriding the selection expression 2021-08-30 17:18:02 +02:00
Christian Beikov
58440ed42d Fix failing EmbeddableOverrideTest on old Oracle versions due to too long identifier 2021-08-30 17:18:02 +02: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
Andrea Boriero
64c331150b Re-enabled additional documentation tests 2021-08-23 18:57:28 +02:00
Christian Beikov
1544493edc Wire up custom collection types 2021-08-16 17:36:50 +02:00
Christian Beikov
2f166c31df Fix some documentation tests and respect filters in Session.find as per HHH-14772, and respect explicit polymorphism 2021-08-09 07:22:57 +02:00
Christian Beikov
b6683d2352 Fix some more result set mapping issues and fix HHH-7525 as well as HHH-10504 2021-08-06 23:15:50 +02:00
Jan Schatteman
3ec8b27b2a Added doc notes on the filter clause and the ilike predicate
Signed-off-by: Jan Schatteman <jschatte@redhat.com>
2021-08-05 23:35:17 +02:00
Steve Ebersole
07ec4f208d asciidoctor task config 2021-08-05 10:04:54 -05:00
Christian Beikov
ca22db14bb Fix some issues with collection-path related HQL functions minindex/maxindex/minelement/maxelement/elements/indices and group by item rendering problems 2021-08-05 09:50:28 +02:00
Steve Ebersole
53fc490181 Document value generation;
Moved `@CurrentTimestamp` from src/test/java to src/main/java
2021-08-03 14:03:32 -05:00