Commit Graph

13641 Commits

Author SHA1 Message Date
Andrea Boriero 6327616c8d EntityManager#find() throws IllegalArgumentException for wrong arguments 2022-02-01 14:02:38 +01:00
Christian Beikov 0509b10040 Implement support for ordered set-aggregate functions like listagg, percentile_disc, rank etc. 2022-02-01 13:38:32 +01:00
Andrea Boriero bd2446a5d5 Fix throw IllegalArgumentException for query with no roots specified 2022-02-01 13:32:50 +01:00
Gavin King 5a549ea5b4 fix initialization of SingleTableEntityPersister to be eager 2022-02-01 00:34:14 +01:00
Gavin King dcd7ebbb56 clean up some warnings
use Metadata instead of deprecated Mapping
(I'm not sure that's really an improvement)
2022-02-01 00:34:14 +01:00
Jan Schatteman d2b740ce5b
Jrenaat 6.0 deprecation removals (#4718)
* Removed deprecated org.hibernate.boot.jaxb.internal.stax.LocalSchema

Signed-off-by: Jan Schatteman <jschatte@redhat.com>

* Remove some deprecations from org.hibernate.engine.jdbc

Signed-off-by: Jan Schatteman <jschatte@redhat.com>

* Remove deprecated misspelled method in PostActionEventListener

Signed-off-by: Jan Schatteman <jschatte@redhat.com>

* Remove deprecated getSource() from AbstractPreDatabaseOperationEvent

Signed-off-by: Jan Schatteman <jschatte@redhat.com>

* Privatize deprecated buildOptimizer method in OptimizerFactory

Signed-off-by: Jan Schatteman <jschatte@redhat.com>

* Remove deprecated ServiceContributingIntegrator

Signed-off-by: Jan Schatteman <jschatte@redhat.com>

* Remove some more deprecated features

Signed-off-by: Jan Schatteman <jschatte@redhat.com>
2022-01-31 19:14:48 +01:00
Christian Beikov 0ad5796ffd Implement SQM copying for JPA Criteria API uses 2022-01-31 19:04:37 +01:00
Andrea Boriero 5446291171 Throw UnknownSqlResultSetMappingException for non existing StoreProcedure result mapping 2022-01-31 17:34:38 +01:00
Andrea Boriero b139967be1 Fix Criteria Subquery#getSelection() returns null when it has not any select expression 2022-01-31 17:34:11 +01:00
Christian Beikov de0dd8cda3 Copy DomainParameterXref on demand instead of recreating to avoid instance mismatch with ParameterMetadata 2022-01-31 16:55:59 +01:00
Christian Beikov 1e823386f6 Support FK column access optimization also for associations in embeddables of an element collection 2022-01-31 16:55:59 +01:00
Christian Beikov afdedb0fc5 Avoid rendering unnecessary parenthesis for junctions 2022-01-31 16:55:59 +01:00
Christian Beikov cd555de724 Fix NPE for unbound parameters due to wrong type determination 2022-01-31 16:55:59 +01:00
Christian Beikov ce5951a948 Fix type inference for binary arithmetic expressions 2022-01-31 16:55:59 +01:00
Christian Beikov af42f3a76c Allow controlling whether selection item deduplication should happen and disable deduplication in subqueries. Remove some dead code and fix a possible NPE. Expose some JdbcOperation fields for libraries to make it easy to produce a derived operation. 2022-01-31 16:55:59 +01:00
Gavin King ef391bf644 get rid of warnings about use of deprecated PersisterCreationContext 2022-01-31 14:10:04 +01:00
Gavin King 1c73be8ba4 remove use of deprecated method 2022-01-31 14:10:04 +01:00
Gavin King 3f563087e6 add a couple of comments 2022-01-31 11:29:24 +01:00
Gavin King c9015bcd8d make ln() and exp() have the return type Double 2022-01-31 11:29:24 +01:00
Gavin King 385cba79d8 remove PowerReturnTypeResolver
You can't do "exact decimal" exponentiation. For the same reason that
sqrt() is of type Double in the JPA, pow(decimal, 0.5) is also of type
Double.

Yes, yes, I know that some dbs (Postgres!) claim that the return type is
NUMERIC for NUMERIC arguments. But go on, try it: yes, the return type of
typed NUMERIC, but then it has a very suspicious number of digits. Hrrm....
17 decimal digits, now why does that specific number ring a bell?
2022-01-31 11:29:24 +01:00
Gavin King 5b5c76abfd fill in type parameters of raw type in Type interface 2022-01-30 19:28:24 +01:00
Gavin King 1b0862babd introduce Contexts for the other cascading operations that need them
and typesafety, finally!
2022-01-30 19:28:24 +01:00
Gavin King 7570d15291 finally fix the warnings and typecasts in DefaultMergeEventListener
by using MergeContext instead of (raw!) Map
2022-01-30 19:28:24 +01:00
Gavin King b75613cff1 edit the (excellent) javadoc of MergeContext 2022-01-30 19:28:24 +01:00
Gavin King 772c4533ee move inner classes of CommonFunctionFactory to toplevel 2022-01-30 19:01:36 +01:00
Gavin King 6f3592ac25 Streams are no longer closed by terminal operations
This is no longer true, according to H6 migration guide, so undocument it
2022-01-30 18:35:08 +01:00
Gavin King 8025af7592 add some code comments documenting some decisions taken here
cc @beikov
2022-01-30 16:58:24 +01:00
Gavin King 99e43537c1 fix a couple of minor errors in doc 2022-01-30 06:21:53 +01:00
Gavin King 1188c6e628 Use a table instead of a list 2022-01-29 20:01:20 +01:00
Gavin King b2a929a46e fix quoting 2022-01-29 19:42:59 +01:00
Gavin King f5278ce678 javadoc about XML format mappings 2022-01-29 19:18:38 +01:00
Gavin King 9a11e843e6 stop calling factory.getJdbcServices().getDialect() so much 2022-01-29 18:00:39 +01:00
Gavin King 48dc4662ef move subclassColumnClosure down to the only subclass that uses it 2022-01-29 17:46:42 +01:00
Gavin King 135216b0a9 fix some warnings in a couple of tests 2022-01-29 17:01:57 +01:00
Gavin King 56232a0159 remove a bunch of unused junk from the persisters
this is a potential performance gain!
2022-01-29 17:01:57 +01:00
Gavin King 929cbd1139 add missing @Override annotations 2022-01-29 17:01:57 +01:00
Gavin King 38f4c70e7b split up TypeHelper 2022-01-29 12:55:27 +01:00
Gavin King 6c3b74d39e clean up an important test 2022-01-29 11:16:20 +01:00
Gavin King e8d7c98798 deprecate two operations that are no longer called
... and return deprecated types
2022-01-29 11:15:55 +01:00
Gavin King ea36099571 fix some deprecation warnings by using getValues() instead of getPropertyValues()
though I don't like the underlying deprecation that made this necessary, and I
would prefer to be able to roll back these changes
2022-01-29 10:58:37 +01:00
Gavin King 678adbf682 add some missing (since = "6.0") 2022-01-29 10:55:50 +01:00
Gavin King 3f1cc36c2a fix some warnings in QueryResultsCacheImpl 2022-01-29 10:48:23 +01:00
Gavin King d86e9b6ab6 minor stylistic review and generics fixes in event stuff 2022-01-29 10:32:49 +01:00
Gavin King c086fff1f8 fix some warnings in a couple of tests 2022-01-29 09:00:14 +01:00
Gavin King c807aecdb9 add some @FunctionalInterface annotations
and fix a warnings
2022-01-29 08:59:34 +01:00
Gavin King 232ad00f5c add some missing (since="6.0") 2022-01-29 08:57:25 +01:00
Gavin King cd7417e815 remove unwrap() methods that aren't to do with proxying
it's better to do this stuff in a more typesafe way
2022-01-29 02:12:44 +01:00
Gavin King 2e2a544584 correct fix for Interceptor.onSave()
see 9898151dda

This change broke the ability to selectively implement methods of Interceptor,
and also broke backwards compatibility with older implementations of Interceptor.
2022-01-29 02:12:25 +01:00
Gavin King 2090df4a08 fix some raw types in Configuration 2022-01-29 02:12:25 +01:00
Gavin King 9276ce4421 explain how to get things in the javadoc 2022-01-29 00:43:08 +01:00