Commit Graph

8475 Commits

Author SHA1 Message Date
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 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 ccee58add8 add some Javadoc, and rename a class 2022-02-07 21:04:54 +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
Christian Beikov dc65d041d1 Fix issues with min/max element/index in the select clause 2022-02-07 12:07:03 +01:00
Christian Beikov e0a35287c9 test showing maxindex() / maxelement() broken 2022-02-07 12:07:03 +01:00
Andrea Boriero 768e6873fd Fix Attribute#getJavaType() returs also primitive types 2022-02-07 10:26:44 +01:00
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
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 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 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
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
Gavin King f388b2fb2b Javadoc for SessionFactoryBuilder and lots of crossrefs 2022-01-28 19:46:39 +01:00
Gavin King 77137f7407 remove type parameter from BasicValueBinder
why it ever had one, I can only speculate
2022-01-28 17:25:16 +01:00
Gavin King fb1650f789 refresh Javadoc for Configuration and friends 2022-01-28 17:16:59 +01:00
Andrea Boriero b1a09d5630 Fix Criteria#getResultType() returning Object class instead of null 2022-01-28 16:51:00 +01:00
Gavin King 475d028981 remove @TimeZoneColumn for now because it's unimplemented
and there's no plan to implement it for 6.0

(we can put it back later if someone gets around to implementing it)
2022-01-28 16:01:58 +01:00
Gavin King 5f1358633d remove a deprecation that was probably an accident 2022-01-28 14:05:09 +01:00
Gavin King d4f934881c fix some warnings and other misc cleanups to .cfg package 2022-01-27 22:08:39 +01:00
Andrea Boriero f9141ecb5a Add additional test 2022-01-27 20:10:24 +01:00
Gavin King 6bfa8d6c27 fix disabling of fk in @ManyToOne associations 2022-01-27 19:44:32 +01:00
Gavin King abe0cc3108 javadoc for @NotFound and NotFoundAction 2022-01-27 19:39:36 +01:00
Gavin King 0a251e9a0e second round of binder cleanup: CollectionBinder, more AnnotationBinder 2022-01-27 18:13:09 +01:00
Gavin King 13b00f8907 massive cleanup of AnnotationBinder 2022-01-27 18:13:09 +01:00
Christian Beikov 9a22e615f5 Do not eagerly create a table group for implicit joins 2022-01-27 18:10:18 +01:00
Steve Ebersole 67fbab36bb list v. bag - javadoc, migration guide 2022-01-27 08:49:58 -06:00
Christian Beikov 32f493e74c Fix remaining tests 2022-01-27 07:25:45 -06:00
Steve Ebersole 31bc14979b move remaining tests from o.h.test to o.h.orm.test 2022-01-26 23:16:16 -06:00
Gavin King d3c38f2a8e javadoc revision to CommonQueryContract
and fix the package info for org.hibernate.persister.walking.spi
2022-01-27 01:05:59 +01:00
Andrea Boriero be49444822 Fix failures with inline value handling mode 2022-01-26 17:49:04 -06:00
Gavin King c8a4546331 add Query.getSingleResultOrNull()
this is quite similar to the existing uniqueResult() method,
but its name is much clearer, and it throws the JPA exception
2022-01-26 17:44:42 -06:00
Steve Ebersole d7e5d55278 move remaining tests from o.h.test to o.h.orm.test 2022-01-26 17:07:27 -06:00
Steve Ebersole 5436f441ae move remaining tests from o.h.test to o.h.orm.test 2022-01-26 17:06:53 -06:00
Andrea Boriero 5ae3d1e81e CriteriaQuery#getParameters() should not return parameters internally created because value handling mode is bind 2022-01-26 16:16:53 -06:00
Gavin King 09299e1f41 get rid of the last iterators in the mapping package 2022-01-26 22:53:44 +01:00
Gavin King 12a515a95a get rid of more iterators in the mapping package 2022-01-26 22:53:44 +01:00
Gavin King 54b9677d99 get rid of the iterators in the mapping package
and clean up a lot of warnings
2022-01-26 22:53:44 +01:00
Gavin King 766d519ddd actually remove EntityTuplizer and friends 2022-01-26 22:53:24 +01:00
Gavin King 56973f5da4 remove some operations of SessionFactoryDelegatingImpl 2022-01-26 21:43:57 +01:00
Christian Beikov c06b5c18e3 More test fixes and stored procedure fixes for H2 2022-01-26 21:16:13 +01:00
Andrea Boriero da00adf0da Skip Criteria result type validation when JPA query compliance is enabled 2022-01-26 13:55:19 -06:00
Andrea Boriero cb6be7dc81 Fix Subquery#getCorrelatedJoins throws NPE when FromClause is null 2022-01-26 13:52:42 -06:00
Andrea Boriero b9d4a74693 Fix rendering of negated boolean expression predicate 2022-01-26 13:52:12 -06:00
Christian Beikov 96931d8094 Fix tests and implement handling callable function hint for stored procedures 2022-01-26 13:51:49 -06:00
Steve Ebersole 131b7bb4e0 HHH-15030 - SelectQuery, MutationQuery, etc
SelectQuery based on Criteria
SelectQuery based on named query (HQL only)
MutationQuery based on named query (HQL only)
2022-01-26 13:43:44 -06:00
Craig K 751aa6f50f
Fix race condition that allowed Component.getType() to return null (#4700)
This fix prevents an NPE in org.hibernate.mapping.SimpleValue.isValid() and likely elsewhere
2022-01-26 15:18:01 +01:00
Jan Schatteman cc0b198142 Remove some deprecations in org.hibernate.cfg and
org.hibernate.collection.spi

Signed-off-by: Jan Schatteman <jschatte@redhat.com>
2022-01-26 14:31:41 +01:00
Gavin King d2643fc2b5 minor javadoc improvements to Mapping 2022-01-26 10:24:41 +01:00
Gavin King e82a5492c3 get rid of some more usages of getMetamodel() 2022-01-26 10:20:20 +01:00
Gavin King a3ef7b906d Also Javadoc for JPA compliance stuff
clarify logic of a method in AbstractEntityPersister
(there was actually a bug here)
2022-01-26 08:53:30 +01:00
Gavin King ccf88c925e remove isStrictJPAQLCompliance()
it was uncalled, and anyway incorrect
2022-01-26 08:48:52 +01:00
Steve Ebersole 7b00d3ce78 Migrate internal uses of `MetamodelImplementor` (deprecated) to instead use `MappingMetamodel` 2022-01-25 20:22:29 -06:00
Gavin King f6287cedc2 very minor cleanups to engine package 2022-01-26 01:07:08 +01:00
Gavin King ee1d27719c minor cleanups to Actions 2022-01-26 00:42:08 +01:00
Gavin King 8f8ae50e0b remove deprecated ExtendedBeanManager 2022-01-26 00:16:48 +01:00
Gavin King 5dbf9aedf9 fix for Dialects with null SQLException delegate 2022-01-25 22:48:58 +01:00
Gavin King 6b5c11b1ff clean up some warnings in engine.jdbc package 2022-01-25 22:04:54 +01:00
Gavin King 6b51952137 clean up SQLExceptionConverter and friends removing obsolete stuff 2022-01-25 21:43:43 +01:00
Gavin King e51c210d78 squash lots of warnings in services
change the raw Map representation of config properties to Map<String,Object>
2022-01-25 21:04:50 +01:00
Gavin King ef86097db7 minor improvements to Javadoc of Mutability 2022-01-25 11:25:49 +01:00
Gavin King 03a3f96c62 squash a bunch of warnings 2022-01-25 10:37:14 +01:00
Gavin King c44e0519b9 remove deprecated operations of SessionBuilder
they've been deprecated since 5.2
2022-01-25 10:11:36 +01:00
Gavin King 9c37385cb9 remove deprecated operations from SessionFactoryBuilder 2022-01-25 08:58:55 +01:00
Gavin King f0fa64bda8 make checkstyle shut up 2022-01-25 08:22:22 +01:00
Gavin King 55a556b017 mark impls of EntityTuplizer as @Deprecated 2022-01-25 07:46:48 +01:00
Gavin King 1ebe8523e5 better to throw than always return null
it would be even better, IMO, to simply remove this method
2022-01-25 07:46:04 +01:00
Steve Ebersole 3f879dc3db User Guide - collection mapping docs 2022-01-24 19:52:41 -06:00
Gavin King 6590727698 add a couple of missing @SuppressWarnings in Query hierarchy 2022-01-24 23:46:25 +01:00
Gavin King 599ffec8fc take out even more @deprecated trash 2022-01-24 23:46:25 +01:00
Gavin King fad946838a cleanup CallbackRegistry 2022-01-24 23:46:25 +01:00
Gavin King 73f4960e3d take out some @Deprecated trash 2022-01-24 23:46:25 +01:00
Steve Ebersole bfde4461b3 Change `@ParamDef#type` associated with a `@FilterDef` from `String` to `Class` in keeping with the general move away from String-based type usage in annotations 2022-01-24 16:44:22 -06:00
Steve Ebersole 521209815f api, spi, internal, deprecation, javadoc 2022-01-24 16:04:08 -06:00
Steve Ebersole 510ce500f6 Change `@ParamDef#type` associated with a `@FilterDef` from `String` to `Class` in keeping with the general move away from String-based type usage in annotations 2022-01-24 15:07:03 -06:00
Steve Ebersole 7f2194e068 api, spi, internal, deprecation, java 2022-01-24 14:58:45 -06:00
Steve Ebersole 4c0824d74d Change `@ParamDef#type` associated with a `@FilterDef` from `String` to `Class` in keeping with the general move away from String-based type usage in annotations 2022-01-24 14:58:45 -06:00
Gavin King 973c052c8c move since from @deprecated to @Deprecated 2022-01-24 21:55:31 +01:00
Gavin King 451603e2f2 let's not forget @Nationalized 2022-01-24 16:01:13 +01:00
Jan Schatteman dc2e86d5c1 Remove several deprecations in org.hibernate.boot
Signed-off-by: Jan Schatteman <jschatte@redhat.com>
2022-01-24 08:42:33 -06:00
Steve Ebersole d6c4f90f4c Change `@ParamDef#type` associated with a `@FilterDef` from `String` to `Class` in keeping with the general move away from String-based type usage in annotations 2022-01-24 08:27:11 -06:00
Gavin King 596317da0b javadoc around nationalized character support 2022-01-24 14:57:37 +01:00
Atgoogat 9ad64e5001 HHH-15046: moved overlapping db2_luw version to constant 2022-01-24 14:49:55 +01:00
Atgoogat 77ea0c7c1f HHH-15046: db2 version override for SQLAstTranslator 2022-01-24 14:49:55 +01:00
Atgoogat 706bd15222 HHH-15046: revert import order update 2022-01-24 14:49:55 +01:00
Atgoogat 5ffeb55251 HHH-15046: revert import order update 2022-01-24 14:49:55 +01:00
Atgoogat ff09336594 HHH-15046: handle db2 luw and db2z/i version differently 2022-01-24 14:49:55 +01:00
Atgoogat d9bae6f31e HHH-15046: fix nullptr problem with db2z/i dialect intialization 2022-01-24 14:49:55 +01:00
Atgoogat b2c29f9ba1 HHH-15046: test for db2z & db2i initalization error
both errors ocure because private property "version" is used
through the super-constructor before being intialized.
2022-01-24 14:49:55 +01:00
Gavin King 5c4ab4eaf6 javadoc improvements to Sessionfactory, Filter, FilterDefinition 2022-01-24 11:20:12 +01:00
Gavin King c6eb826bd6 remove deprecated/unimplemented methods of Metamodel 2022-01-23 19:51:23 +01:00
Steve Ebersole 0426c152d0 General clean-up of Javadoc for `o.h.annotations` package 2022-01-23 12:43:51 -06:00
Steve Ebersole 8168b932be native-query callable 2022-01-23 12:43:51 -06:00
Gavin King dcfb6cdb19 remove deprecated members of FetchMode 2022-01-23 19:36:43 +01:00
Gavin King 05349f6a9b for how many decades has this code fragment been rejected by the Java compiler? 2022-01-23 19:29:27 +01:00
Gavin King bbec4bcd39 improve javadoc of Session and SessionFactory 2022-01-23 19:25:45 +01:00
Gavin King 5158312570 improve some more javadoc 2022-01-23 19:04:47 +01:00
Gavin King 44799b5a9c improve javadoc for @DialectOverride 2022-01-23 18:24:55 +01:00
Gavin King 3c77ab5f69 expressable -> expressible everywhere 2022-01-23 16:41:18 +01:00
Gavin King 23324318fd remove deprecated operations of MetamodelImplementor 2022-01-23 15:55:15 +01:00
Steve Ebersole fa9ab7bdae clean up remaining test suite failures
- stored procedure parameters - oracle
2022-01-23 07:10:29 -06:00
Steve Ebersole 45d5dc8e74 clean up remaining test suite failures
- stored procedure parameters
2022-01-23 07:10:28 -06:00
Steve Ebersole bfe2e84ee2 clean up remaining test suite failures
- stored procedure parameters
2022-01-23 07:10:28 -06:00
Steve Ebersole e2db993578 clean up remaining test suite failures
- stored procedure parameters
2022-01-23 07:10:28 -06:00
Steve Ebersole 2d72015156 Build task - collect @Incubating + logging refs 2022-01-23 07:06:21 -06:00
Steve Ebersole 692fa24b34 Build task - collect @Incubating + logging refs 2022-01-23 07:06:21 -06:00
Gavin King d4979ac547 clean up some warnings in persisters and improve javadoc 2022-01-23 12:52:18 +01:00
Gavin King 9724fb0d9b actually remove deprecated operations of SessionFactoryImplementor and SessionImplementor 2022-01-23 12:52:18 +01:00
Gavin King 4b26cb5876 remove use of deprecated accessors of SessionFactoryImplementor 2022-01-23 12:52:18 +01:00
Gavin King be831f9690 some code simplifications to collection types
and many more warning cleanups
2022-01-23 12:52:18 +01:00
Gavin King b7802f5eb6 clean up yet more warnings, and remove some obsolete code 2022-01-23 03:15:32 +01:00
Gavin King 24627b214f get IntelliJ to fix a bunch of warnings for itself 2022-01-23 02:06:47 +01:00
Gavin King 121fd2d879 squash warnings in the root package 2022-01-23 01:03:06 +01:00
Gavin King e3a59f883a get rid of billions of obsolete WeakerAccess suppressions 2022-01-23 00:53:38 +01:00
Gavin King a4cb390552 squash some warnings
mainly by just adding wildcards
2022-01-23 00:29:42 +01:00
Gavin King 3f073ae551 get rid of a class that was "being phased out"
and use some more correct generic types
2022-01-22 23:52:25 +01:00
Steve Ebersole 6f2273d749 HHH-15030 - SelectQuery, MutationQuery, etc
SelectQuery as typed
2022-01-22 15:35:31 -06:00
Steve Ebersole dccb1580fe native query function-call checking 2022-01-22 15:35:18 -06:00
Gavin King 74c09c0af4 remove incorrect javadoc 2022-01-22 21:22:52 +01:00
Gavin King b189d4e9c4 Javadoc for various annotations 2022-01-22 21:19:50 +01:00
Gavin King 766483e46d remove hibernate.query.omit_join_of_superclass_tables 2022-01-22 20:01:17 +01:00
Gavin King 6ddb12412c more work on javadoc of settings 2022-01-22 20:01:17 +01:00
Gavin King b3b8ef6073 move DEFAULT_QUERY_PLAN_MAX_COUNT to QueryEngine
which helps clean up the Javadoc for AvailableSettings
2022-01-22 12:45:35 +01:00
Gavin King 1ce86ee7e7 deprecate a setting that is currently unused 2022-01-22 12:38:40 +01:00
Gavin King 8a2c000b78 fix some generics warnings 2022-01-22 11:59:06 +01:00
Gavin King ec64ce7321 more work on Query javadoc 2022-01-22 11:26:45 +01:00
Gavin King 891435f3bb javadoc preamble for Query 2022-01-22 10:48:50 +01:00
Gavin King eb9e70e30d fix some minor generics issues 2022-01-22 10:12:51 +01:00
Gavin King 2f72d76266 add some @Deprecated annotations on the methods that return raw types 2022-01-22 09:48:11 +01:00
Steve Ebersole bab5b2bf99 minor fixes for function call tests 2022-01-21 23:50:21 -06:00
Steve Ebersole dd41ebc3cf HHH-15030 - SelectQuery, MutationQuery, etc 2022-01-21 22:22:14 -06:00
Steve Ebersole 3365a4fe54 HHH-15030 - SelectQuery, MutationQuery, etc 2022-01-21 22:05:41 -06:00
Gavin King 159792209a more Javadoc refresh 2022-01-22 02:19:24 +01:00
Gavin King fd75e3e75d remove some obsolete config properties 2022-01-22 02:19:24 +01:00
Gavin King 0b01d406c3 second phase of Javadoc refresh for settings 2022-01-22 02:19:24 +01:00
Steve Ebersole 9234aff3ec SelectQuery, MutationQuery, etc 2022-01-21 15:13:24 -06:00
Steve Ebersole 233470efdb Add SelectionQuery, MutationQuery 2022-01-21 15:13:23 -06:00
Steve Ebersole 0d709e8213 HHH-15030 - Introduce SelectionQuery, MutationQuery, UntypedNativeQuery, MutationNativeQuery, JpaQuery, etc;
HHH-14855 - Support passing a String representation of EntityGraph we can parse through the graph-language parser

rebasing main
2022-01-21 15:13:21 -06:00
Steve Ebersole a632ebd6b5 HHH-15030 - Introduce SelectionQuery, MutationQuery, UntypedNativeQuery, MutationNativeQuery, JpaQuery, etc;
HHH-14855 - Support passing a String representation of EntityGraph we can parse through the graph-language parser

rebase from main
2022-01-21 13:59:48 -06:00
Steve Ebersole 30e48401e0 api, spi, internal, deprecation
org.hibernate.query package
2022-01-21 13:36:34 -06:00
Steve Ebersole cd9c877e93 api, spi, internal, deprecation
org.hibernate.query package
2022-01-21 13:34:09 -06:00
Steve Ebersole 8cda382ef9 api, spi, internal, deprecation
org.hibernate.query package
2022-01-21 13:34:06 -06:00
Steve Ebersole 2b5a5fc196 api, spi, internal, deprecation
org.hibernate.query package
2022-01-21 13:27:11 -06:00
Gavin King a780d8683c drop hibernate.query.native.ordinal_parameter_base
and deprecate hibernate.cache.keys_factory
2022-01-21 19:38:13 +01:00
Gavin King 466e7e7469 first round of Javadoc update to AvailableSettings 2022-01-21 19:38:13 +01:00
Gavin King 2df71bb7ab remove some more deprecated stuff from Environment
and refresh its Javadoc
2022-01-21 16:52:09 +01:00
Gavin King 329b2fc9c4 remove hibernate.jdbc.use_streams_for_binary config property
this should be handled by the Dialects
2022-01-21 16:52:09 +01:00
Gavin King 8327f8567d more Javadoc for JtaPlatform and friends 2022-01-21 16:17:05 +01:00
Jan Schatteman 27b2271130
Some deprecation removals (#4681)
* Remove deprecations in org.hibernate.action.internal

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

* Remove deprecated org.hibernate.lob.ReaderInputStream

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

* Remove deprecated org.hibernate.tool.schema.extract.spi.SequenceInformation.getIncrementSize()

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

* Update hibernate-core/src/main/java/org/hibernate/tool/schema/internal/AbstractSchemaValidator.java

Co-authored-by: Christian Beikov <christian.beikov@gmail.com>

Co-authored-by: Christian Beikov <christian.beikov@gmail.com>
2022-01-21 15:15:41 +01:00
Gavin King a79891a426 the the in Javadoc and comments 2022-01-21 14:27:20 +01:00
Gavin King 7ab5a04d42 improve the SQL formatter
we were rendering a many SQL functions badly
2022-01-21 14:16:07 +01:00
Gavin King 6f3ffe8abc put back in test for HQL casting between double and string 2022-01-21 12:35:35 +01:00
Gavin King 376d0c220f fix checkstyle violations 2022-01-21 10:19:30 +01:00
Steve Ebersole 5ded7b8833 api, spi, internal, deprecation
SynchronizeableQuery
2022-01-20 22:49:20 -06:00
Steve Ebersole 5761e7801b api, spi, internal, deprecation
org.hibernate.jpa
2022-01-20 22:19:13 -06:00
Gavin King e1e16a5041 improve an error message and some javadoc 2022-01-20 23:20:16 +01:00
Gavin King d385cc8825 remove hibernate.query.validate_parameters
in H6 we're going to always validate them
2022-01-20 23:20:16 +01:00
Gavin King a59bf70ccf remove hibernate.query.conventional_java_constants
this was apparently a sorta nasty bandaid to a performance problem in query compilation
and it caused problems for some users, breaking interpretation of enum values
2022-01-20 23:20:16 +01:00
Gavin King a84793bd6d remove hibernate.cache.provider_configuration_file_resource_path
this was unused
2022-01-20 20:24:08 +01:00
Steve Ebersole 6cbfb30ea4 api, spi, internal, deprecation 2022-01-20 11:29:57 -06:00
Gavin King ff79e0f12a use @linkplain instead of @link where there is plain text 2022-01-20 18:21:14 +01:00
Gavin King e7acffef15 remove some legacy config properties
the following are gone:

hibernate.ejb.resource_scanner
hibernate.query.substitutions
hibernate.jdbc.sql_exception_converter
hibernate.native_exception_handling_51_compliance
hibernate.legacy_limit_handler
hibernate.jdbc.wrap_result_sets
2022-01-20 18:03:51 +01:00
Gavin King dded606259 use @value instead of @link for setting names in Javadoc 2022-01-20 17:42:26 +01:00
Gavin King 71f122d2e5 remove check for deprecated setting
I don't think we need to look for org.hibernate.ejb.HibernatePersistence anymore
2022-01-20 16:54:42 +01:00
Christian Beikov 7fa2fd0588 Small documentation and internal updates 2022-01-20 16:02:21 +01:00
Christian Beikov ffd72a7d60 Get rid of Type#dictatedSizes and Type#defaultSizes and move methods from Sized as default methods to UserType 2022-01-20 16:01:02 +01:00
Christian Beikov 5fcacce3b1 Replace some uses of Type#getSqlTypeCodes with BasicType#getJdbcType 2022-01-20 16:01:02 +01:00
Christian Beikov 445cedfec7 Cleanup the naming of JavaDescriptor and JavaTypeDescriptor to align with the new naming JavaType 2022-01-20 16:01:02 +01:00
Christian Beikov 895ac83537 Mark some classes as internal which should go away when transitioning to SqlAst based rendering 2022-01-20 16:01:02 +01:00
Andrea Boriero 4361790205 Fix ArrayIndexOutOfBoundsException for CollectionJoin#on(Predicate ...) 2022-01-20 14:57:15 +01:00
Gavin King e6a9220606 clean up very old Dialect javadoc
and squash a couple of warnings
2022-01-20 14:07:32 +01:00
Gavin King 019f87106a tests for @DialectOverride.Xxxx 2022-01-20 11:33:22 +01:00
Gavin King 8aa0665731 introduce the @DialectOverride annotation
for overriding certain mapping annotations that specify native SQL
2022-01-20 11:33:22 +01:00
Andrea Boriero a9ddebf643 HHH-15044 Revert HHH-14826 fix because the provided test was wrong 2022-01-20 11:25:27 +01:00
Andrea Boriero a74d0b72be Fix converter issues 2022-01-19 19:56:04 +01:00
Christian Beikov 36d6760abf Fix missing commit which was causing dangling connection/tx 2022-01-19 17:03:42 +01:00
Christian Beikov 8783781f7c Add another TCK test for BigDecimal handling and fix parameter rendering for some Dbs 2022-01-19 17:03:42 +01:00
Andrea Boriero 1e07c4f85f Fix expression type for arithmetic operations 2022-01-19 17:03:42 +01:00
og151037 4775be3bb8 HHH-15042: add offset-clause usage for DB2zDialect 2022-01-19 15:25:57 +01:00
Yoann Rodière 227930b090 HHH-15022 Test deleting all entities of a given type in a table-per-class hierarchy with a default schema 2022-01-19 14:31:09 +01:00
Gavin King 6072564b93 improve javadoc for @Formula 2022-01-19 13:46:03 +01:00
Gavin King 101de70289 improve javadoc for @JoinFormula-related stuff 2022-01-19 13:33:25 +01:00
Gavin King 47c695bace remove unused imports 2022-01-19 13:14:55 +01:00
Christian Beikov 659bbc0167 Re-add accidently removed SkipDialects for ManyToOneWithFormulaTest 2022-01-19 12:24:17 +01:00
Steve Ebersole 9e3dc8d3e1 clean up remaining test suite failures 2022-01-18 17:49:55 -06:00
Steve Ebersole ba024c5475 clean up remaining test suite failures 2022-01-18 17:20:32 -06:00
Steve Ebersole 1dcdec9c15 clean up remaining test suite failures 2022-01-18 17:19:25 -06:00
Steve Ebersole 7437a96b12 clean up remaining test suite failures 2022-01-18 17:16:23 -06:00
Steve Ebersole e8d8b43bfd clean up remaining test suite failures 2022-01-18 16:06:47 -06:00
Steve Ebersole aefb3c3edc clean up remaining test suite failures 2022-01-18 15:56:24 -06:00
Steve Ebersole 1ad9133871 clean up remaining test suite failures 2022-01-18 14:10:34 -06:00
Christian Beikov 4e5a28deaa Add support for non-synthetic virtual model parts 2022-01-18 20:04:50 +01:00
Christian Beikov fb882f56f3 Finalize moving annotations tests and ensure columns are sorted also for collection keys properly 2022-01-18 20:04:50 +01:00
William Burns 1ede36212b HHH-15037 Criteria Update/Delete with vararg parameters throws NullPointerException 2022-01-18 19:41:41 +01:00
Steve Ebersole cfb98abf7a WrongClassException 2022-01-18 12:19:28 -06:00
Andrea Boriero 0ea5528250 Fix criteria mod failing on derby 2022-01-18 16:24:09 +01:00
Christian Beikov 181217ef1f Re-introduce the regex pattern for the format pattern check 2022-01-18 16:19:28 +01:00
Christian Beikov d0f6c3302c HHH-15035 Fix native query type discovery with h2 2.0.202+ with float(..) DDL type 2022-01-18 15:18:01 +01:00
Christian Beikov fb749b6b32 Adapt tests and skips for H2 2.0.202+ 2022-01-18 15:18:01 +01:00
Christian Beikov 6feb33f4e1 HHH-15009 Allow augmenting supported physical table types through dialect for H2 2.0.202+ support 2022-01-18 15:18:01 +01:00
Christian Beikov fe44411e60 HHH-15014 Fix subquery tuple rendering for H2 2.0.202+ 2022-01-18 15:18:01 +01:00
Christian Beikov 0fb19fd4fb Get rid of column names that are problematic on H2 2.0.202+ 2022-01-18 15:18:01 +01:00
Christian Beikov c284315931 Add validation for format function and remove `aa` format as no database supports long/short AM/PM markers 2022-01-18 15:18:01 +01:00
Andrea Boriero b8fab567cc Fix CriteriaBuidler#locate() arguments order rendering 2022-01-18 13:10:24 +01:00
Andrea Boriero 370d9354fc Fix CriteriaBuidler#locate() arguments order rendering 2022-01-18 13:10:24 +01:00
Steve Ebersole 6f1ddc32dd fix NPE when selecting enum value 2022-01-17 20:40:00 -06:00
Gavin King 53d38262ba test showing selecting enum value causes NPE 2022-01-17 20:38:43 -06:00
Andrea Boriero 9e7a091d67 Fix CriteriaBuidler#locate() arguments order rendering 2022-01-17 18:39:01 +01:00
Andrea Boriero 23a011385d Fix MaskSensitiveInformationTest failure 2022-01-17 16:41:42 +01:00
Steve Ebersole a7d76b2370 more `@NotImplementedYet` clean-up 2022-01-16 22:54:19 -06:00
Steve Ebersole 37094e3e80 Javadoc work 2022-01-16 22:02:57 -06:00
Steve Ebersole 6ec996f1d5 WrongClassException tests 2022-01-16 22:02:57 -06:00
Sanne Grinovero e38f63a0cb HHH-15033 Restrict JNDI lookups to "java" scheme 2022-01-16 22:00:24 +00:00
Sanne Grinovero 8511343108 HHH-15033 Reduce visibility of JndiServiceImpl 2022-01-16 22:00:24 +00:00
Andrea Boriero ef980cbb5d Throw IllegalArgumentException when the an attribute name is not resolved as a subPath 2022-01-16 19:04:41 +01:00
Andrea Boriero 9fba739bc2 Throw IllegalArgumentException for null Criteria literal value 2022-01-16 19:04:05 +01:00
Steve Ebersole fb17eb52df more `@NotImplementedYet` clean-up - fix bad test assertions 2022-01-16 11:00:28 -06:00
Steve Ebersole c0137e7de2 additional clean up of - "massive" cleanout of the transformers stuff 2022-01-15 08:51:09 -06:00
Gavin c43b6ff606 massive cleanout of the transformers stuff
- add meaningful generic types to stuff
- remove things which weren't used/tested, and seem obsolete
  (and which could not be propertly generified)
2022-01-15 08:51:09 -06:00
Andrea Boriero 22457cc74d Throw IllegalArgumentException when the an attribute name is not resolved as a subPath 2022-01-15 08:13:05 -06:00
Steve Ebersole 326f2ae775 Clean up usages of `@NotImplementedYet` 2022-01-14 20:36:53 -06:00
Sanne Grinovero 73e936b280 HHH-15029 Small refactoring in JndiServiceImpl: no need to use a Properties for the context configuration 2022-01-14 23:48:08 +00:00
Sanne Grinovero 1b2508e4e0 HHH-15029 Remove deprecated JndiHelper 2022-01-14 23:48:08 +00:00
Steve Ebersole 7de0e79cad Clean up usages of ``@NotImplementedYet` 2022-01-14 15:56:59 -06:00
Steve Ebersole 834426e8f6 Fix bug with creating a NaturalIdCacheKey via SimpleCacheKeysFactory 2022-01-14 15:25:05 -06:00
Steve Ebersole 9fe3c861ca HHH-15023 - Move Query and NativeQuery back to org.hibernate.query 2022-01-14 14:49:17 -06:00
Gavin fbec85b475 get rid of the language "positional parameter"
they're not really positional in JPA, they're just labelled by integers

also use "argument" instead of "value", since that's the proper term
2022-01-14 16:14:43 +01:00
Andrea Boriero 1e973a0b55 Throw IllegalArgumentException when cannot resolve attribute names 2022-01-13 19:15:58 +01:00
Andrea Boriero bb05cdadc6 Throw IllegalArgumentException when cannot resolve attribute names 2022-01-13 18:35:30 +01:00
Gavin King 14bf19ff7e remove deprecated Statistics APIs 2022-01-12 10:20:13 +01:00
Gavin King f7b4a94c45 minor refresh of the Statistics API
- added getStart() returning an Instance
- removed a left-over @MXBean annotation
- refreshed some Javadoc
- fixed some warnings
2022-01-12 10:20:13 +01:00
Steve Ebersole fda6e96c5e HHH-15023 - Move Query and NativeQuery back to org.hibernate 2022-01-11 21:01:56 -06:00
Gavin 1528152735 remove deprecated methods of Cache interface 2022-01-11 20:56:24 +01:00
Gavin be4b751582 remove use of deprecated caching methods from tests 2022-01-11 20:56:24 +01:00
Gavin abf3360b49 improve Javadoc for Cache and fix some warnings 2022-01-11 20:56:24 +01:00
Andrea Boriero 0f9a141c9e List annotatted with @OrderBy interpreted with BAG semantic 2022-01-11 18:23:29 +01:00
Andrea Boriero 2bbeeb5ab2 Fix postLoad callback method calls 2022-01-11 17:36:10 +01:00
Steve Ebersole 8f5fefd806 HHH-15017 - Clean-up Query#setParameter overloads
- https://hibernate.atlassian.net/browse/HHH-15017
2022-01-10 12:25:38 -06:00
Steve Ebersole b62c23ab29 HHH-15017 - Clean-up Query#setParameter overloads
- https://hibernate.atlassian.net/browse/HHH-15017
2022-01-10 12:25:38 -06:00
Andrea Boriero b8114bad31 Fix postLoad callback method not called 2022-01-10 12:22:52 -06:00
Sanne Grinovero 8d43be4b78 HHH-15018 OracleTypesHelper shouldn't log stacktraces when the Oracle JDBC driver isn't loadable 2022-01-10 16:19:27 +00:00
Steve Ebersole d2584730f3 Document @IdGeneratorType;
Some work to clean up User Guide sections on id-generators
2022-01-10 09:54:06 -06:00
Gavin King 2e8bf3d1df make 'element' and 'value' synonyms, along with 'index' and 'key' 2022-01-10 15:48:34 +01:00
Gavin King 3e8f1c67df clean up lots of warnings by adding wildcards to raw types
also comment out some unused code
2022-01-10 15:48:34 +01:00
Gavin King 4b5e6e1969 introduce new syntax for aggregate functions applying to collections
max(element x.y), min(index x.y), sum(element x.y)

and rationalize the node types here
2022-01-10 15:48:34 +01:00
Gavin King 38fc97feb3 sort out some confusion regarding elements() vs value() + indices() vs index()
Strictly, elements() and indices() don't make sense as select items, but we
have tests for this, and users who reported bugs and sent in patches, etc, etc,
so I'm going to go ahead and keep accepting them in the select clause as a
blessed misuse.

I'm not however going to allow them to be dereferenced because no, that's why.
2022-01-10 07:09:12 +01:00
Gavin King abd63d73ea clean up warnings and broken Javadoc links on Cache interface 2022-01-10 00:18:27 +01:00
Gavin King 7f9f8e1ff3 clean up FlushMode 2022-01-10 00:18:27 +01:00
Gavin King 3fb6c1ce26 Refresh the javadoc of a bunch of annotations 2022-01-10 00:18:27 +01:00
Gavin King 596debed4d make @Check work when applied at the field level
This was a bug!

Also add checkConstraint member to @Table to allow check constraints on secondary tables

Also clean up some Javadoc of some related annotations
2022-01-10 00:01:24 +01:00
Gavin King bd8bf15e00 fix some warnings in IntelliJ (unnecessary StringBuilder) 2022-01-09 21:58:05 +01:00
Gavin King 4324509a59 allow @Comment to apply at the class level
yes, you can do it with the @Table annotation but this is nicer,
no good reason to not allow it
2022-01-09 21:32:30 +01:00
Gavin King 9eac2b193b skip some tests on TiDB 2022-01-09 17:36:37 +01:00
Gavin King c88a9ac8bc improve javadoc for @Order/@Sort annotations 2022-01-09 11:50:31 +01:00
Gavin King 740779165d add IdentifierLoadAccess.withReadOnly()
adding this to the other XxxxLoadAccess interfaces is much harder,
but this one is easy
2022-01-08 15:21:10 +01:00
Gavin King e02e1e2ffb remove the layer-breaking getLobCreator() methods from the Hibernate class
This is in principle a breaking change, but one I consider pretty innocuous,
since I can't imagine why anyone was calling Hibernate.getLobCreator(session)
instead of session.getLobHelper().
2022-01-08 12:35:43 +01:00
Gavin King e331c2870e more cosmetic improvements to HQL error reporting
makes the messages and exception types a bit more consistent
2022-01-08 12:14:21 +01:00
Gavin King e79d7efbce use instanceof instead of isInstance() on the hot path
surely NBD, but such an easy thing to fix and remove all doubt
2022-01-08 10:45:53 +01:00
Gavin King 6c83e1d0ec cosmetic improvements to HQL error reporting
makes the messages and exception types a bit more consistent
2022-01-08 09:59:02 +01:00
Gavin King fc079ba226 disable test on some dialects 2022-01-08 00:15:14 +01:00
Gavin King 77aa6ab244 use Map.entry() instead of ouw own MapEntryImpl for entry() function
add tests for HQL collection functions
2022-01-08 00:15:14 +01:00
Gavin King 90cd25bc5d remove obsolete comments and enable a (fixed) test 2022-01-08 00:15:14 +01:00
Gavin King 032d224531 totally trivial test for autoquoting of initial _
that actually really does test that it does what it should :)
2022-01-07 18:54:59 +01:00
Gavin King 32f4122470 autoquote column names with initial _ on those dbs that require it 2022-01-07 18:54:59 +01:00
Gavin King 54b5a85af4 add a whole passage about serialization 2022-01-07 12:14:06 +01:00
Gavin King 1b1790bb8c improvements to javadoc for Transaction + SharedSessionContract 2022-01-07 11:58:42 +01:00
Gavin King 0e8203c600 remove obsolete APIs and clean up warnings
rewrite the incorrect javadoc for the class Hibernate
2022-01-07 11:58:42 +01:00
Gavin King b444fbf9a5 deprecate "old" methods of session and add a new one
- deprecated load()
- deprecated save(), saveOrUpdate(), and update()
- deprecated delete()
- deprecated "dangerous" overloads of refresh()
- added getReference() taking an entity name
- improved the Javadoc for lots of operations
2022-01-07 11:58:42 +01:00
Steve Ebersole 448d678fb5 Drop `@CollectionClassificationType`;
Drop `@CollectionSemantics`;
Drop `@CollectionSemanticsRegistration(s)`;
Add `@CollectionTypeRegistration(s)`;
Rename `@CustomType` to `@Type`;
User Guide and Migration Guide changes
2022-01-06 21:46:48 -06:00
Gavin King b8d26f829e add a test for selecting a datetime literal
seems to be causing problems in 2 dbs
2022-01-07 00:20:38 +01:00
Gavin King 2c00a647cb add a test for datediff()/dateadd() functions 2022-01-07 00:20:38 +01:00
Gavin King 86025a9af8 try to get the test working again on Sybase 2022-01-06 18:10:00 +01:00
Gavin King 01600b48e5 remove a workaround for a bug on derby that was fixed ages ago 2022-01-06 18:10:00 +01:00
Gavin King aef951f279 move some function arg typechecking up to the SQM phase
this is where it needs to be for checking of named queries at startup
and for any checks that happen in an IDE or at build time
2022-01-06 18:10:00 +01:00
Gavin King 7178caea8d fix lots of warnings in AbstractHANADialect 2022-01-06 18:10:00 +01:00
Gavin King cc91beb536 typecheck HQL function arguments 2022-01-06 18:10:00 +01:00
Steve Ebersole a73068cc0f Improve CollectionClassification javadoc 2022-01-06 09:05:38 -06:00
Steve Ebersole 773f3429c6 hibernate.mapping.default_list_semantics (`AvailableSettings#DEFAULT_LIST_SEMANTICS`)
make LIST the default classification for List attributes with no `@OrderColumn`, etc.
2022-01-06 08:53:00 -06:00
Gavin King 1beabbdf40 update some of the tests to use non-deprecated methods
or at least suppress the warnings
2022-01-06 15:25:21 +01:00
Gavin King 261ca55b0f improve some javadoc for Query 2022-01-06 15:25:21 +01:00
Gavin King 780fb3e500 add createStatement() methods
these are needed for executing insert/update/delete queries, because we
deprecated the createQuery() methods that accept no Class as a parameter

these are much better-named anyway, and have a better return type
2022-01-06 15:25:21 +01:00
Gavin King c96f22dfe0 remove hibernate.dialect.show_hql_functions and just make it a log category
really unclear why I didn't do it that way in the first place
2022-01-06 15:24:35 +01:00
Steve Ebersole 0b96d8fca7 - fix too-long identifier for Oracle 2022-01-06 06:21:01 -06:00
Filipe Roque bcb1577b43 HHH-15013 H2 2.0.202 no longer supports nextval, replacing with ANSI SQL 2022-01-06 10:56:00 +01:00
Gavin King 30f627ce39 improvements to Javadoc for hints 2022-01-06 10:28:31 +01:00
Gavin King 17a06e2ffa fix for problem on main 2022-01-06 10:28:31 +01:00
Steve Ebersole a71ba9e385 Initial work to re-organize the Collections chapter in the UserGuide;
Docs for @CollectionType, @CollectionClassificationType and @CollectionSemantics;
Some api/spi/internal work;
Migration Guide;
2022-01-05 16:26:58 -06:00
Christian Beikov f7af0017f7 Adapt a few Oracle pagination with lock tests to consider that only Oracle 12.2 supports the fetch clause perfectly 2022-01-05 14:37:50 +01:00
Christian Beikov 3704dad923 Add a wait to a test that uses a database generated timestamp 2022-01-05 14:37:50 +01:00
Christian Beikov 97dd838954 Move last query test and fix issue with parent table group access when parent is correlated 2022-01-05 14:37:50 +01:00
Christian Beikov 6e8f344a9f Implement handling of top level limit/offset/fetch clause when collection fetches are involved 2022-01-05 14:37:50 +01:00
Christian Beikov afe9b6744e Fix HANA test failures 2022-01-05 14:37:50 +01:00
Christian Beikov de1de9f629 Fix issues with Oracle rownum pagination on Oracle before version 12.2 2022-01-05 14:37:50 +01:00
Christian Beikov 2e0a2eea43 Fix issues with multi table values inserts and add optimization for simple values inserts 2022-01-05 14:37:50 +01:00
Christian Beikov cb5e0b08b9 Fix collation handling for ordering expressions. Fix SqmQuerySpec#setRestriction 2022-01-05 14:37:50 +01:00
Filipe Roque f64f311c4f HHH-14985 H2Dialect does not work properly with h2 2.0.202 on inserts 2022-01-05 10:04:17 +01:00
Gavin King 5a0537aa04 rough implementation of naturalid() function in HQL
and add tests for id(), version(), naturalid()
2022-01-04 23:07:39 +01:00
Gavin King 80b5c1e085 get rid of things named Ejb3 2022-01-04 20:35:39 +01:00
Fabio Massimo Ercoli ef4b2732d3 Change assertions expecting rownum expression is used 2022-01-04 20:13:00 +01:00
Fabio Massimo Ercoli 3095116bcf Restore OraclePaginationWithLocksTest test execution 2022-01-04 20:13:00 +01:00
Gavin King 254d4d0351 correctly handle "weird" function names with periods and quotes in HQL 2022-01-04 18:06:43 +01:00
Gavin King 008455bc0c rename some grammar rules and add documentation
I want this to be readable to users
2022-01-04 15:05:31 +01:00
Andrea Boriero 9c7d39abf1 Fix broken Session#refresh() method 2022-01-04 09:14:24 +01:00
Gavin King e27f6af4b9 test demonstrating that refresh() doesn't 2022-01-04 09:14:24 +01:00
Gavin 4e0c131a27 allow parameter in like escape
as required by JPQL
2022-01-03 19:06:32 +01:00
Andrea Boriero 0cf96c09b7 Re-enable additional tests 2022-01-03 14:33:38 +01:00
Gavin King 6f714f16b3 remove unnecessary parens 2022-01-02 18:56:07 +01:00
Gavin King 72889fe861 add some missing functions to docs 2022-01-02 16:10:33 +01:00
Gavin King fdd1a52e01 promote log10() to standard function status 2022-01-02 16:10:33 +01:00