Commit Graph

9946 Commits

Author SHA1 Message Date
Yoann Rodière 20842f80bd HHH-16458 Close JDBC statement when DeferredResultSetAccess fails to execute a query 2023-04-25 10:33:06 +02:00
Christian Beikov 9be331cb97 Ignore some random UUID tests on Sybase to reduce trailing zero bytes related failures 2023-04-25 09:33:08 +02:00
Christian Beikov aa4f68f89b HHH-15602 Fix small typo 2023-04-25 09:33:08 +02:00
Christian Beikov 4203d0d08a HHH-16485 Insert ordering doesn't consider root entity names 2023-04-25 09:33:08 +02:00
Christian Beikov 4a55422187 HHH-15602 Fix bidirectional association management code 2023-04-25 06:49:54 +02:00
Christoph Dreis 5303295c31 HHH-16500 Remove unnecessary reflection from JpaStreamTest 2023-04-24 20:07:17 +02:00
Christoph Dreis 8b006b49b4 HHH-16508 Remove StreamDecorators 2023-04-24 20:07:17 +02:00
Christian Beikov e96402a005 HHH-16382 Fix resolving table references especially for self-referential associations 2023-04-24 20:04:18 +02:00
Andrea Boriero b754325cab HHH-16492 Hibernate 6 does not auto flush when calling Query.stream() with NativeQuery 2023-04-24 14:33:22 +02:00
Andrea Boriero 343da6efb6 HHH-16492 Add test for issue 2023-04-24 14:33:14 +02:00
Andrea Boriero 23e2b40ae8 HHH-16479 Generic enum in @MappedSuperclass fails with java.lang.IllegalArgumentException: Named type [...] did not implement BasicType nor UserType 2023-04-24 14:25:53 +02:00
Andrea Boriero 31c5be55ed HHH-16479 Add test for issue 2023-04-24 14:25:44 +02:00
Marco Belladelli 88f1e156a3
HHH-16362 Don't set fetched on nested non-terminal attribute joins 2023-04-21 16:25:41 +02:00
Marco Belladelli e564ca4dde
HHH-16362 Add test for issue 2023-04-21 16:25:38 +02:00
Marco Belladelli bb26212f24
HHH-16347 Disable alias and positional order-by items in OVER and WITHIN GROUP clauses 2023-04-21 16:08:07 +02:00
Marco Belladelli 6990346506
HHH-16347 Add test for issue 2023-04-21 16:08:03 +02:00
Andrea Boriero 46041a138d HHH-16471 Entities serialized in QueryKey causes java.lang.ClassCastException 2023-04-21 13:56:12 +02:00
Andrea Boriero 9c4745924e HHH-16471 Add test for issue 2023-04-21 13:56:03 +02:00
Andrea Boriero a345ed54b2 HHH-16477 LAZY @ManyToOne may again break EAGER @ManyToOne with Bytecode Enhancement 2023-04-20 11:39:30 +02:00
Tomas Cerskus f127aa1ca4 HHH-16477 LAZY @ManyToOne may again break EAGER @ManyToOne with Bytecode Enhancement 2023-04-20 11:39:20 +02:00
Andrea Boriero 80b32fcd35 HHH-16457 Values returned in ValueAccess.getValues() and getValue(…) not alphabetical for Java records 2023-04-20 11:34:50 +02:00
Andrea Boriero 6a9ff46f63 HHH-16457 Add test for issue 2023-04-20 11:34:42 +02:00
Andrea Boriero 9e97115470 HHH-16493 OneToManyCollectionPart doesn't disassemble properly embeddable IdClass 2023-04-20 11:30:07 +02:00
Andrea Boriero 610c31c0ee HHH-16493 Add test for issue 2023-04-20 11:29:58 +02:00
Steve Ebersole ab195021c8 HHH-16481 - Add a new WrapperArrayHandling for enabled JPA compliance
(cherry picked from commit 959858f8bc)
2023-04-19 23:44:07 -04:00
Steve Ebersole 9db89979bf HHH-16482 - Convert Functions in StandardConverters to static methods that can be used as method references
(cherry picked from commit d7c5db47f6)
2023-04-19 23:42:01 -04:00
Jan Schatteman f5be9556d7 HHH-16438 - Add test for issue where left outer joins do not work with single table polymorphic entities because of the discriminator in the where clause
Signed-off-by: Jan Schatteman <jschatte@redhat.com>

HHH-16438 - fix for issue
- move the discriminator condition from the where clause to the join clause
- add another test to JoinWithSingleTableInheritanceTest

HHH-16438 - Apply some suggestions from Christian's code review
Co-authored-by: Christian Beikov <christian.beikov@gmail.com>
2023-04-19 23:50:46 +02:00
Christian Beikov 995aa53fc0 HHH-16468 Simplify embeddable key handling 2023-04-17 15:36:26 +02:00
Andrea Boriero 85434f0f09 HHH-16468 Don't create fetch for _identifierMapper anymore 2023-04-17 15:36:26 +02:00
Christian Beikov 3ee817008a HHH-16468 Don't create fetch for _identifierMapper anymore 2023-04-17 15:36:26 +02:00
Marco Belladelli 5a3d60f508 Fix fragile tests 2023-04-14 13:56:38 +02:00
Marco Belladelli 1382929311 HHH-16349 Correct entity valued path selectable expansion 2023-04-14 08:58:20 +02:00
Marco Belladelli 7d94921dc9 HHH-16349 Add test for issue 2023-04-14 08:58:14 +02:00
Marco Belladelli a22a2c8327 HHH-16459 Fix inline dirty checking with generics and inheritance 2023-04-14 08:49:18 +02:00
Yoann Rodière 47bdd016a1 HHH-16459 Test bytecode-enhanced inline dirty tracking for generic associations from mapped superclasses 2023-04-14 08:49:03 +02:00
Yoann Rodière 7d3f6188f8 HHH-16459 Expand existing test of generic associations to ToOne associations 2023-04-14 08:48:56 +02:00
Andrea Boriero 0d6dd97b9b HHH-16394 Statement Batch + Version + Dirty Collection leads to OptimisticLockException: Batch update returned unexpected row count from update 2023-04-13 10:10:12 +02:00
Andrea Boriero 95266d20c1 HHH-16394 Add test for issue 2023-04-13 10:10:02 +02:00
Andrea Boriero 947ed23188 HHH-16387 Entity in key not returned when querying 2023-04-13 10:01:19 +02:00
Andrea Boriero bb52619875 HHH-16387 Add test for issue 2023-04-13 10:01:08 +02:00
Gavin 68ffc34e7b
expose some methods of EntityDeleteAction to HR 2023-04-11 18:07:10 +01:00
Davide D'Alto e5f08de40e HHH-16443 Convert SqlStatementLogger into a Service
This way is possible to get the logger without having
to initialize the JdbcServices service.

Without this change, in Hibernate Reactive, we have a cyclic
dependency during the initialization of the services between
JdbcEnvironment and JdbcServices.
2023-04-08 10:47:57 +01:00
Andrea Boriero 0a744006dd HHH-16429 WF SessionFactoryTestCase test fails 2023-04-07 10:54:19 +02:00
Jan Schatteman 1ce0bca179 Remove some unnecessary code duplications in AbstractSelectionQuery and AbstractQuery
Signed-off-by: Jan Schatteman <jschatte@redhat.com>
2023-04-06 21:58:09 +02:00
Jan Schatteman 9fabe509f2 HHH-16435 - Fix for issue (combine filterpredicates with potential already existing ones)
Signed-off-by: Jan Schatteman <jschatte@redhat.com>
2023-04-06 19:04:17 +02:00
Jan Schatteman 4b034b8c27 HHH-16435 - Added test for issue
Signed-off-by: Jan Schatteman <jschatte@redhat.com>
2023-04-06 19:04:17 +02:00
Davide D'Alto a8eb205332 HHH-16444 When logging the selected dialect, log the db version too
The db version used by the dialect makes a huge different on the
sql queries used.

The log before this commit:
```
INFO SQL dialect [vert.x-worker-thread-0] HHH000400: Using dialect: org.hibernate.dialect.MariaDBDialect
```

The log after this commit:
```
INFO SQL dialect [vert.x-worker-thread-0] HHH000400: Using dialect: org.hibernate.dialect.MariaDBDialect, version: 10.11
```

I've also updated the HANADialectTestCase because now the error message
contains the db version
2023-04-06 17:49:59 +01:00
Christian Beikov 484cbfe720 HHH-16389 Introduce checkerframework for nullness marking/checking and null check the JPA metamodel generator 2023-04-05 19:14:59 +02:00
Marco Belladelli 0da73a27a5 HHH-16340 Avoid checking discriminator duplication when not insertable 2023-04-05 18:37:43 +02:00
Marco Belladelli 1394659ff3 HHH-16340 Add test for issue 2023-04-05 18:37:43 +02:00