Commit Graph

10682 Commits

Author SHA1 Message Date
Emmanuel Duchastenier 0b819863f2 HHH-13779 (5.4) - Foreign key schema migrator should be case-insensitive
This avoids re-creating existing foreign keys with a different name,
after migrating from Hibernate 4 to Hibernate 5 (as implicit naming
convention has changed).
Actually, some RDBMS allow it (PostgreSQL, MySQL, MS SQL Server, ...)
and duplicate the same key, whereas others (Oracle, ...) do not
allow it and Schema update fails.

This fix ignores the case of the table and column name when checking
if a equivalent Foreign Key already exists (whatever its name)

Closes https://hibernate.atlassian.net/browse/HHH-13779
2021-04-30 12:46:35 -05:00
Hibernate-CI 5dea862afa 5.4.32-SNAPSHOT 2021-04-29 18:30:30 +00:00
Hibernate-CI 716fc9e270 5.4.31.Final 2021-04-29 18:25:35 +00:00
Andrea Boriero 96f8338ba9 HHH-14513 Move publishing release artifacts from BinTray 2021-04-29 20:17:45 +02:00
Andrea Boriero 9676989927 HHH-14513 Move publishing release artifacts from BinTray 2021-04-29 16:07:16 +02:00
Andrea Boriero ab80fe7903 HHH-14513 Move publishing release artifacts from BinTray 2021-04-29 14:04:03 +02:00
Andrea Boriero 9921a06d03 HHH-14513 Move publishing release artifacts from BinTray 2021-04-29 13:14:47 +02:00
Sanne Grinovero cb1c87aa29 HHH-14575 Adapt BasicProxyFactoryImpl to be more native-image friendly 2021-04-28 10:24:20 +01:00
Yoann Rodière 0e2b19a6e2 HHH-14567 Do not reuse query plans after session filters changed 2021-04-26 12:04:25 +01:00
Yoann Rodière 96544d94a8 HHH-14567 Test enabling filters after query creation but before query execution 2021-04-26 12:04:25 +01:00
Vlad Mihalcea 7ef27cbb26 HHH-13077 - Optimize query plan call count 2021-04-26 12:04:25 +01:00
Yoann Rodière 35bd8b4b6f HHH-14571 Always report identifiers as initialized when using enhanced proxies 2021-04-22 17:25:58 +02:00
Yoann Rodière 622babf725 HHH-14571 Test that the identifier is always reported as initialized by Hibernate.isPropertyInitialized when using enhanced proxies 2021-04-22 17:25:58 +02:00
Karel Maesen 5d3fa320bd HHH-11490 Fix for UUID mapping conflict
* HHH-11490 Fix for UUID mapping conflict

* HHH-11490 Custom ValueBinder implementation
2021-04-19 18:07:33 +02:00
Karel Maesen bdcd1a0fb2 HHH-14523 Fix for dirty-checking bug 2021-04-19 17:58:31 +02:00
Andrea Boriero 56e9769741 HHH-14549 Collection with default field initializer will always be empty 2021-04-19 14:43:54 +02:00
Andrea Boriero 0a8a8091b4 HHH-14549 Add test for issue 2021-04-19 14:43:54 +02:00
Karel Maesen c36aecfc73 HHH-14090 Add MariaDB103SpatialDialect 2021-04-19 14:30:14 +02:00
Yoann Rodière df6cde898a HHH-14557 Test JDBC resources are released on each rollback 2021-04-14 14:15:57 +02:00
Yoann Rodière 4806d2b17e HHH-14557 Test JDBC resources are released on each commit
Not just on session closing.
2021-04-14 14:15:57 +02:00
Yoann Rodière 1d4f8b4736 HHH-14557 Always release JDBC connection and resources on rollback 2021-04-14 14:15:57 +02:00
Gail Badner fec36fc4ba HHH-14537 : Updated test as requested; added tests that lazy associations with non-existing entity is unaffected.
(cherry picked from commit ad84aaf0bc)
2021-03-30 11:22:15 -07:00
Gail Badner 106df75f20 HHH-14537 EntityNotFoundException thrown when non-existing association with @NotFound(IGNORE) mapped has proxy in PersistenceContext
(cherry picked from commit 3c1e16e06c)
2021-03-30 11:22:00 -07:00
Gail Badner 672a7e6a00 HHH-14537 : Added test for issue
(cherry picked from commit 9cb9137fb8)
2021-03-30 11:21:45 -07:00
Hibernate-CI f72b7d3d6d 5.4.31-SNAPSHOT 2021-03-19 07:50:54 +00:00
Hibernate-CI dca2cabaf2 5.4.30.Final 2021-03-19 07:41:23 +00:00
Jaanus Hansen b4aae92af3 HHH-4815 Implement support for orphan removal of assocations within embeddables 2021-03-18 16:34:18 +01:00
Christian Beikov 70785baee0 HHH-12076 Increase maximum open cursors 2021-03-18 16:34:00 +01:00
randymay a123562860 HHH-12076 Fix index out of bounds exception and allow table group joins for collection joins as well 2021-03-18 16:08:15 +01:00
Christian Beikov 48b4ba7ea1 HHH-9182 Cleanup grammar ambiguity issues 2021-03-18 15:52:54 +01:00
Karel Maesen 3d8859a8ff Docker_db improvements
- enable experimental settings for cockroachdb
- reduce shmni setting for Hana
2021-03-18 15:32:38 +01:00
Karel Maesen b9fb1b183e HHH-14037 Add PostgisPG10Dialect 2021-03-18 15:32:13 +01:00
Karel Maesen ffc43aadc4 HHH-14454 Add SpatialDialect for CockroachDB 2021-03-18 15:31:51 +01:00
Sanne Grinovero 3a86b9b697 HHH-14502 Iterations and memory retention improvements for processing of PropertyContainer metadata 2021-03-15 17:23:28 +00:00
Andrea Boriero 9412c44c30 HHH-14499 Explicitly listing mapped classes which are @MappedSuperClass might break narrowing down of generics 2021-03-15 16:58:27 +00:00
Andrea Boriero 83f5dbf203 HHH-14499 Add test for issue 2021-03-15 16:58:21 +00:00
Sanne Grinovero ea135ed1a8 HHH-14494 Upgrade the PostgreSQL JDBC driver used for testing to v. 42.2.19 2021-03-12 11:55:33 +00:00
Sanne Grinovero 56dbb3dd7a HHH-14485 Upgrade integration tests to use Oracle JDBC driver version 21.1 2021-03-12 11:05:20 +00:00
Christian Beikov f23e97fb2a Backport GH actions to 5.4 2021-03-04 17:01:02 +01:00
Yoann Rodière 79bc79bb4c
HHH-14439 Backport SQLStatementInterceptor improvements from the master branch
Signed-off-by: Yoann Rodière <yoann@hibernate.org>
2021-03-04 14:14:50 +01:00
Yoann Rodière e3be7e610c HHH-14439 Test executing the same query with subselects a second time with different list parameters
Signed-off-by: Yoann Rodière <yoann@hibernate.org>
2021-03-04 13:05:26 +01:00
Yoann Rodière c7505bab1d HHH-14439 Clean up expanded list parameters before re-executing a query
Signed-off-by: Yoann Rodière <yoann@hibernate.org>
2021-03-04 13:05:26 +01:00
Hibernate-CI 3bf150f661 5.4.30-SNAPSHOT 2021-03-03 11:56:38 +00:00
Hibernate-CI dfb4d174e8 5.4.29.Final 2021-03-03 11:46:30 +00:00
johnniang 48d0a80bbf HHH-14473 add test case 2021-03-03 11:18:51 +00:00
johnniang 4bcdd17df4 HHH-14473 Resolve managed class name with class loader as well 2021-03-03 11:18:45 +00:00
Sanne Grinovero 0f78d9cfec HHH-14477 Log warnings about the use of Javassist as BytecodeProvider being deprecated 2021-03-03 10:47:53 +00:00
Gail Badner 36ec6cfc90 HHH-14390 HHH-14466 : StackOverflowError loading inverse side of associations owned by associated entity ID
Improved code comments as recommended by Steve Ebersole.

(cherry picked from commit 34a361058d)
2021-03-02 14:20:47 -08:00
Gail Badner 681cc77dbb HHH-14390 : StackOverflowError with @Fetch(FetchMode.SELECT) mapped for entity with an ID that is a bidirectional one-to-one eager association
Move fix into FetchStyleLoadPlanBuildingAssociationVisitationStrategy

(cherry picked from commit cb18fdb4f7)
2021-03-02 14:20:30 -08:00
Gail Badner 4448d42c7d HHH-14466 : StackOverflowError loading an entity with eager one-to-many if bidirectional and many-to-one side is the ID
(cherry picked from commit 2bacaabc37)
2021-03-02 14:20:00 -08:00