Commit Graph

8077 Commits

Author SHA1 Message Date
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