Christian Beikov
2873440a25
Use proper RequiresDialect annotation
2022-02-15 13:23:55 +01:00
Christian Beikov
b9dca52ecc
Fix ProcedureParameterTests
2022-02-15 11:40:41 +01:00
Christian Beikov
9b6ddc8c0b
Fix GeneratedAnnotationTests
2022-02-15 11:38:05 +01:00
Christian Beikov
98816362e2
Fix EntityWithManyToOneSelfReferenceTest
2022-02-15 10:11:15 +01:00
Christian Beikov
b85f530b42
Log warning when FetchStyle.JOIN is used with LAZY and add migration guide entry for fetch all properties
2022-02-15 09:47:12 +01:00
Christian Beikov
dc6ad33cfc
HHH-10463 Implement function argument type inference
2022-02-15 09:04:50 +01:00
Christian Beikov
260c738a5a
Get rid of some `getEntityMetamodel` uses
2022-02-15 09:03:55 +01:00
Christian Beikov
87638a9a2e
Get rid of most walking stuff
2022-02-14 22:55:45 +01:00
Christian Beikov
1a71bb9787
Fix root validation for subqueries that appear in the on clause
2022-02-14 22:55:21 +01:00
Christian Beikov
0f02279f10
Implement partial null key handling and respect lazy flag regardless of fetch style
2022-02-14 20:13:53 +01:00
Andrea Boriero
3b6d25425a
HHH-15073 Test criteria query built from JPA metamodel and involving primitive types
2022-02-14 09:34:28 +01:00
Yoann Rodière
c1078b2612
HHH-15073 CriteriaPrimitiveIdTest: use only JPA interfaces that are available in Hibernate ORM 5
2022-02-14 09:34:28 +01:00
Yoann Rodière
c4e763c5c5
HHH-15073 Test criteria query built from JPA metamodel and involving primitive types
2022-02-14 09:34:28 +01:00
Andrea Boriero
d8a98af76e
Fix LocalTime and OffsetTime parameter binding
2022-02-11 13:16:28 +01:00
Andrea Boriero
83306d588d
Call to Query#getParameterValue(int position) with closed EntityManager must throw an IllegaStateException
2022-02-11 11:36:50 +01:00
Christian Beikov
5bfbc466eb
Rename JPA copy compliance setting to `hibernate.criteria.copy_tree`
2022-02-10 18:24:23 +01:00
Andrea Boriero
07f3d6727f
Fix native named query max results
2022-02-10 14:27:36 +01:00
Gavin King
74e1e6caad
catch other cases where NPE indicates that a PostInitCallbackEntry is unready
2022-02-10 14:05:14 +01:00
Gavin King
9a98976b41
don't use NPE to indicate that a PostInitCallbackEntry is unready and needs to be re-queued
...
because:
- to anyone stepping through the code it looks like a bug
- nobody *reading* the code would have any way of guessing
that this is behavior that can happen, much less that it's
expected and correct
2022-02-10 12:16:16 +01:00
Andrea Boriero
6fcbe5f0a0
Fix parameter binding validation
2022-02-10 09:39:23 +01:00
Gavin King
4d024fde8b
update documentation to explain implicit collection joins
2022-02-09 22:05:21 +01:00
Gavin King
437da23961
removing a questionable grammar rule seems to make implicit collection joins work
2022-02-09 22:05:21 +01:00
Gavin King
9ebac67737
change the new syntax for HQL collection-aggregates
...
this feels more consistent to me, and avoids introducing "new" syntax
2022-02-09 22:05:21 +01:00
Christian Beikov
5828536428
Implement window function support in HQL
2022-02-09 18:32:27 +01:00
Christian Beikov
d5d1cf937c
Fix a type and missing branches in base walkers for ordered set aggregates
2022-02-09 18:31:14 +01:00
Christian Beikov
236ece769b
Implement query transformer to emulate for ordered set aggregate functions through their window variants
2022-02-09 18:31:14 +01:00
Christian Beikov
f52cf04a16
Introduce QueryTransformer for functions
2022-02-09 18:31:14 +01:00
Christian Beikov
c2ee076ce6
Change the way persisting works as needed for list semantics and throw
...
proper error on null list index
2022-02-08 16:32:25 +01:00
Yoann Rodière
62b4d249ee
HHH-15054 Reproducer for cascade-delete NPE on entity with @OneToMany(mappedBy = ...)
2022-02-08 16:32:25 +01:00
Christian Beikov
842ebd0e7e
Make use of function return type resolver for elements/indices functions
2022-02-08 16:32:09 +01:00
Christian Beikov
9b53ca8559
Implement support for using generically typed associations to re-enable inheritance/discriminator tests
2022-02-08 15:40:02 +01:00
Andrea Boriero
eb572376a9
Implemented NamedQuery creation from Criteria
2022-02-08 14:46:28 +01:00
Gavin King
bd5b05cbe3
improve error messages
2022-02-08 14:26:49 +01:00
Gavin King
0dfa91f6ec
add a test
2022-02-08 14:26:39 +01:00
Gavin King
eefdb4acd6
test demonstrating enduring problems with minelement()/maxelement()
2022-02-08 13:38:00 +01:00
Christian Beikov
4e19e322a3
Don't create table groups for the plural path of a plural part path
2022-02-08 13:25:55 +01:00
Christian Beikov
89bf82fee4
Avoid eagerly resolving secondary tables when using discriminator path
2022-02-08 12:23:43 +01:00
Christian Beikov
cab03a238d
Add treat test for TCK compliance
2022-02-08 12:23:43 +01:00
Christian Beikov
0a5b62421e
Fix treat join issue with one-to-many and make sure table pruning always works. Also fix some issues with union subclass pruning
2022-02-08 12:23:43 +01:00
Gavin King
65e282766c
test showing 'join treat' broken for @OneToMany
2022-02-08 12:23:43 +01:00
Gavin King
ccee58add8
add some Javadoc, and rename a class
2022-02-07 21:04:54 +01:00
Karel Maesen
c072ee9cb2
HHH-14932 Using correct WKB version for Postgis
2022-02-07 20:39:35 +01:00
Gavin King
285c2099c8
try to make test work on Maria
2022-02-07 19:15:54 +01:00
Gavin King
addc3ea4c2
split out IntegralTimestampaddFunction
2022-02-07 19:15:54 +01:00
Gavin King
3e97fe39a7
make TimestampaddFunction understandable using Extract Method
2022-02-07 19:15:54 +01:00
Gavin King
52c7f61815
add tests for avg(index) and avg(element)
2022-02-07 19:15:54 +01:00
Gavin King
3b221b7b18
remove a garbage feature (FieldFunction)
2022-02-07 19:15:54 +01:00
Gavin King
75888b94f2
use CastFunction to do typecasts
2022-02-07 19:15:54 +01:00
Yoann Rodière
416eeafaa2
Keep fewer builds in the Jenkins history
2022-02-07 18:16:07 +01:00
Christian Beikov
814c1ad679
Get rid of continue-on-error
2022-02-07 16:06:02 +01:00