Gavin King
4904f64b2e
remove an unused JACC-related class
2022-02-03 19:10:45 +01:00
Christian Beikov
734b80c531
Add test and fix non-pk association comparison issues
2022-02-03 11:55:31 +01:00
Gavin King
a4a15e8b35
use single quotes instead of backticks for consistency
2022-02-02 20:00:58 +01:00
Yoann Rodière
c861e465a7
HHH-15057 Fix exception on persisting bidirectional, list many-to-many association
2022-02-02 18:09:38 +01:00
Yoann Rodière
4f6b60e3ee
HHH-15057 Reproducer for exception about order on many-to-many list
2022-02-02 18:09:38 +01:00
Andrea Boriero
fef147d6a4
Fix binding issue for Criteria with paramters having the same name
2022-02-02 15:36:09 +01:00
Andrea Boriero
971d1ea2f4
Fix function parameters type determination
2022-02-02 15:36:09 +01:00
Andrea Boriero
b721aa9b86
Fix SqmAttributeJoin#copyTo() method
2022-02-02 09:06:33 +01:00
Gavin King
d0255d2c2b
make CommonFunctionFactory a real object
2022-02-01 18:21:55 +01:00
Gavin King
fed23e51b5
extract method on duplicated expressions in CFF
2022-02-01 15:38:55 +01:00
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
8025af7592
add some code comments documenting some decisions taken here
...
cc @beikov
2022-01-30 16:58:24 +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