Commit Graph

13522 Commits

Author SHA1 Message Date
Gavin King a25758f519 don't write @SuppressWarnings({ "unchecked" }) 2022-02-05 20:03:50 +01:00
Gavin King 4b1cd56218 improve Javadoc of JdbcType 2022-02-05 20:00:20 +01:00
Gavin King bedd31b36e clean up a bunch of generics-related warnings 2022-02-05 20:00:20 +01:00
Steve Ebersole 86cdf67016 HHH-15055 - Document SelectionQuery and MutationQuery 2022-02-05 10:50:13 -06:00
Gavin King a7da40709c clean up looping, using indexed for instead of local var 2022-02-05 15:40:31 +01:00
Gavin King 5de6c703a8 clean up the way JdbcLiteralFormatter is called
this is a case where we can use wildcard capture
2022-02-05 15:09:19 +01:00
Gavin King 09470bd55a fix a couple of warnings in Dialect 2022-02-05 12:31:52 +01:00
Gavin King c2f0ab8fcf get rid of warnings involving JdbcFormatter
also get rid of som explicit type args using <>
2022-02-05 12:26:09 +01:00
Gavin King 2f08812187 fix the round() function on Postgres
for some dumb reason, round(x,n) doesn't accept a double on pg
2022-02-04 18:15:34 +01:00
Andrea Boriero f7d5bc857b Fix SqmMemberOfPredicate negation determination 2022-02-04 15:59:18 +01:00
Andrea Boriero 9a2c87808b Fix mutation queries using temporary table not adding discriminator column 2022-02-04 13:57:48 +01:00
Andrea Boriero e24611e0c3 Call EntityMenager#createQuery() that causes RuntimeException should mark Transaction for Rollback 2022-02-04 11:49:17 +01:00
Yoann Rodière a290e85b14 Use a simpler solution to limit concurrent Jenkins builds
See https://issues.jenkins.io/browse/JENKINS-43353?focusedCommentId=414847&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-414847
2022-02-04 10:35:23 +01:00
Yoann Rodière 51e556ebde HHH-15068 Don't try to instantiate types through the bean manager when that's not possible 2022-02-04 10:20:56 +01:00
Yoann Rodière b8060d2df7 HHH-15068 Reproduce problem where type resolution accesses the bean manager before it's ready 2022-02-04 10:20:56 +01:00
blafond 5ced797dd5 HHH-15067: Set add() method as public to allow non-nullable associations in hibe…
…rnate-reactive
2022-02-03 21:14:04 +01:00
Gavin King 0f6295e6e1 remove a bunch of unused classes 2022-02-03 19:10:45 +01:00
Gavin King 11f784e23b add some Javadoc, fix warning, and remove some minor junk 2022-02-03 19:10:45 +01:00
Gavin King c41c5c7472 simplify some code in SchemaAutoTooling 2022-02-03 19:10:45 +01:00
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 798f9b0518 disable test on Sybase
oops, I missed that this failed in CI!
2022-02-02 20:41:52 +01:00
Gavin King f9392406b7 mention ordered set functions in documentation 2022-02-02 20:00:58 +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