Commit Graph

199 Commits

Author SHA1 Message Date
Karel Maesen aded53a760 HHH-14808 Fix PredicateSmokeTest
Refactors SpatialTestBase to use a SessionFactoryAware
implementation that performs necessary initialisations
(e.g. H2).
2021-11-22 14:52:24 -06:00
Karel Maesen 8a96c4e7c7 HHH-4925 Minor fixes 2021-11-15 16:17:11 +01:00
Karel Maesen 5a7ad6d11c HHH-14925 Add additional unit tests. 2021-11-15 16:17:11 +01:00
Karel Maesen 0300e54fef HHH-14925 Remove deprecated BasicType implementations 2021-11-15 16:17:11 +01:00
Karel Maesen f4909b7046 Downgrade H2 2021-11-15 16:17:11 +01:00
Karel Maesen e48da8d52c HHH-14925 Switch for Postgis to javatype/jdbctype
Also some documentation improvements and dead code removal.
2021-11-15 16:17:11 +01:00
Karel Maesen cf477a61ff HHH-14803 Use MySQLGeometryJdbcType for MariaDB 2021-11-15 16:17:11 +01:00
Karel Maesen 54967d0265 HHH-14804 Various improvements 2021-11-15 16:17:11 +01:00
Karel Maesen 022d2c0a13 HHH-14906 Fix naming inconsistencies
Also fixes some minor checkstyle violations and
removes dead code
2021-11-15 16:17:11 +01:00
Karel Maesen 65aa8f7a5b HHH-14804 Upgrade MySQL8 support 2021-11-15 16:17:11 +01:00
Karel Maesen 2deee38103 HHH-14906 Support for H2GIS
Notice that the tests cannot be run from the gradlew cli due to
compatability issues with the H2 version
2021-11-15 16:17:11 +01:00
Karel Maesen 9f70a6b100 HHH-14804 Upgrade MySQL spatial support (WIP) 2021-11-15 16:17:11 +01:00
Karel Maesen 0636f1de14 HHH-14803 Upgrade MariaDB Spatial support 2021-11-15 16:17:11 +01: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 9fa2671cbc Update to Gradle 7.2 2021-10-19 11:07:39 +02: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 597f4bdf6a Get rid of JdbcTypeDescriptor remapping 2021-10-11 16:11:46 +02: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 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
Christian Beikov c5baae7e11 Improve SQL rendering performance by avoiding intermediate String objects 2021-10-05 15:18:38 +02:00
Christian Beikov d8b984ed7f Fix some column type definitions in dialects regarding their maximum capacities. Allow the dialect to resolve the length based on type code, type name, precision, scale and display size. Fix some dialect related issues with tests. Fix untyped null parameter binding issues 2021-09-30 13:52:31 +02:00
Steve Ebersole 439f4fb208 HHH-14848 - Move Ant tasks + support from hibernate-core into tooling/hibernate-ant 2021-09-29 02:09:58 -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 089a3f86ae HHH-14837 - Move to Jakarta EE
preliminary transformation;
only `javax.persistence.*` settings supported atm
2021-09-27 08:21:27 -05:00
Karel Maesen 44babcb880 HHH-14738 Remove redundant function contribution 2021-09-21 11:55:41 +02:00
Karel Maesen b88596df6a HHH-14808 SpatialPredicates use value() method for literal expressions 2021-09-21 11:55:41 +02:00
Karel Maesen 9de428ac1a HHH-14800 Remove redundant doBindNull() overrides 2021-09-21 11:55:41 +02: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 cf854c5cfc Fix checkstyle errors 2021-09-21 11:55:41 +02:00
Karel Maesen 5bae2d8196 HHH-14808 Basic SpatialPredicates 2021-09-21 11:55:41 +02:00
Karel Maesen f72d6045b1 HHH-14738 Add test cases for functions with parameter arguments
Fix rebase errors
2021-09-21 11:55:41 +02:00
Karel Maesen 60d3914769 HHH-14738 Refactor common test setup to base class 2021-09-21 11:55:41 +02:00
Karel Maesen 331ae9d5c9 HHH-14738 Ignore spatial tests for dialects not supported by Spatial 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
Karel Maesen bc44d65eb3 HHH-14801 Register alternative function names for backwards compatibility 2021-09-21 11:55:41 +02:00
Karel Maesen e185ec8913 HHH-14738 Clean up obsolete test support code 2021-09-21 11:55:41 +02:00
Karel Maesen ba47586634 HHH-14801 Register remaining spatial functions for Postgis
Add more spatial functions
2021-09-21 11:55:41 +02:00
Karel Maesen 24c5099eb7 HHH-14801 Improve registering functions for Postgis 2021-09-21 11:55:41 +02:00
Karel Maesen 35f42528fb HHH-14738 Using DynamicTests to test function/entity combinations 2021-09-21 11:55:41 +02:00
Karel Maesen 9251e8bfdc HHH-14801 Add ServiceRegistry as a parameter to the SqmFunctionDescriptors constructor 2021-09-21 11:55:41 +02:00
Karel Maesen 71b197d362 HHH-14738 Refactor spatial functions integration tests 2021-09-21 11:55:41 +02:00
Karel Maesen f5f0ccfdd3 HHH-14800 Use FunctionContributor interface to register spatial functions 2021-09-21 11:55:41 +02:00
Karel Maesen 0b9de79a7d HHH-14800 Use TypeContributor to register spatial types 2021-09-21 11:55:41 +02:00
Karel Maesen 04491e6775 HHH-14800 Introduce SpatialTypeContributor
See discussion #4111
2021-09-21 11:55:41 +02:00
Karel Maesen dcf2a85d20 HHH-14800 Prepare refactoring hibernate-spatial
In preparation for the design as discussed in #4111:
- Fixex compile errors
- Deprecates the SpatialDialects
- Removes the matrix test configuration (obsolete)
- Removes support for Criteria
2021-09-21 11:55:41 +02:00
Andrea Boriero 6efb29e98e Merge remote-tracking branch 'upstream/main' into wip/6.0 2021-09-07 09:36:49 +02:00
Karel Maesen 3edad14c18 HHH-14757 Use geolatte's JTSUtils 2021-09-04 12:59:49 +02:00