Commit Graph

173 Commits

Author SHA1 Message Date
Christian Beikov f2aa533dfc Switch back to numeric(21) with nanosecond resolution as fallback for mapping Duration to retain backwards compatibility 2022-03-25 20:20:28 +01:00
Andrea Boriero b0f8d6a394 Update migration-guide.adoc 2022-03-23 18:21:09 +01:00
Andrea Boriero 6b3bf34a01 Update migration-guide.adoc
Co-authored-by: Steve Ebersole <steve@hibernate.org>
2022-03-23 18:21:09 +01:00
Andrea Boriero ca8f151d78 Improve migration guide query result cache section 2022-03-23 18:21:09 +01:00
Andrea Boriero 58aa445b0b Add query result cache changes to migration guide 2022-03-23 18:21:09 +01:00
Steve Ebersole ac4a792f84 render migration guide using asciidoctor and publish with docs 2022-03-08 11:26:55 -06:00
Christian Beikov 7aaeebe3af Switch back to bag by default for list semantics 2022-03-02 17:02:53 +01:00
Christian Beikov c520b48487 Implement support for CompositeUserType and re-enable tests that make use of it 2022-02-25 15:36:16 +01:00
Christian Beikov c02ce35aa0 Implement on the fly callable named native query to stored procedure translation 2022-02-17 08:14:10 +01:00
Christian Beikov b85f530b42 Log warning when FetchStyle.JOIN is used with LAZY and add migration guide entry for fetch all properties 2022-02-15 09:47:12 +01:00
Christian Beikov 0f02279f10 Implement partial null key handling and respect lazy flag regardless of fetch style 2022-02-14 20:13:53 +01:00
Christian Beikov 5bfbc466eb Rename JPA copy compliance setting to `hibernate.criteria.copy_tree` 2022-02-10 18:24:23 +01:00
Christian Beikov 0ad5796ffd Implement SQM copying for JPA Criteria API uses 2022-01-31 19:04:37 +01:00
Steve Ebersole 67fbab36bb list v. bag - javadoc, migration guide 2022-01-27 08:49:58 -06:00
Steve Ebersole a05f167db6 minor work on migration-guide.adoc 2022-01-19 15:30:26 -06:00
Steve Ebersole 9fe3c861ca HHH-15023 - Move Query and NativeQuery back to org.hibernate.query 2022-01-14 14:49:17 -06:00
Steve Ebersole fda6e96c5e HHH-15023 - Move Query and NativeQuery back to org.hibernate 2022-01-11 21:01:56 -06: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 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
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
Steve Ebersole 7c475c8ac0 migration-guide 2021-12-31 16:21:32 -06:00
Fabio Massimo Ercoli a9c6caa888 Update the documentation with removed flag 2021-12-31 11:40:49 -06:00
Christian Beikov fb8186d3e8 Cleanup stored procedure handling and add support for stored procedure function return 2021-12-24 01:44:41 +01:00
Christian Beikov 6c4ec95182 * Cleanup temporary table handling in dialects
* Fix insert handling with respect to version, discriminator and generated identifier insertion
* Introduce SqmMultiTableInsertStrategy to handle multi-table inserts
* Introduce the notion of an "entity table" similar to the "id table" to handle multi-table insertions
* Implement table based and cte based multi-table insertion to support all dialects
* Implement identifier generator optimizer support for multi-table insert
* Fix validation of insert target paths against select item types
* Fix some DML validations
* Implement over-clause support in SQL AST
* Fix multi-valued filter parameter support
2021-12-07 15:54:01 +01:00
Christian Beikov bab32c3100 Small cleanup and add migration guide sections 2021-12-06 17:21:25 +01:00
Andrea Boriero 16460cf3ab Re-enable additional tests 2021-12-02 13:17:53 +01:00
Andrea Boriero df0479951c Fix o.h.Interceptor#onSave call 2021-12-01 13:16:37 +01:00
Andrea Boriero 36fa3fca8e Re-enabled stream tests 2021-11-25 14:03:04 +01:00
Andrea Boriero da05181c3a Update migration-guide.adoc 2021-11-25 14:03:04 +01:00
Christian Beikov cbcec73d4f * Handle quoted identifiers in HQL and the Ordering parser
* Switch from the "expression" to "expressionOrPredicate" rule in the HQL grammar where it makes sense as required by some HQL tests
* Cleanup parser rule ordering to allow more keywords in the identifier rule
* Implement literal support for Ordering parser
* Add special AvgFunction as needed by H2, HSQL, DB2, SQL Server and Sybase that casts arguments to double if necessary
* Fix wrong deduplication of order by fragments in case a plural attribute is fetched multiple times
* Implement support for de-referencing any-valued mappings in HQL
* Avoid unnecessary entity subtypes in polymorphic splitted queries if a base type also matches the requested type
* Implement pagination support for polymorphic splitted queries
* Cleanup path part resolving by removing lots of duplicate code
* Aligh HQL parsing expectations to the expected behavior of 5.x
* Add method to `JavaType` that allows determining if a type is can be widened to another which is used for arithmetic type resolving
* Implement validations for fetch owner checking
* Fix issues with the id table creation due to lacking column lengths in the column DDL type
* Fix issues and add some optimizations related to multi-table delete handling
* Add the notion of a special "implicit" alias to avoid generating a unique alias for unaliased or implicit HQL joins
* Properly implement multiple bag fetch validation
* Make sure filter predicates are applied for all plural attribute joins
* Fix some issues with undecidable parameter type inference
* Fix some issues with negated SQM predicates not being converted to the proper SQL AST predicates
* Fix issues with qualifying DML target referencing columns
* Fix `is null` semantics for tuples referring to embeddable types
* Capture necessary details from JdbcValuesMetadata in the cached data to avoid executing a query on cache hit when types should be inferred
* Get rid of special CollectionPropertyNames and writeup a migration guide section for the replacements
2021-11-25 08:51:51 +01:00
Andrea Boriero 39dae088ec Update migration-guide 2021-11-24 16:35:23 +01:00
Jan Schatteman 69d2c65880
Removal @Deprecated from availablesettings (#4369)
* Remove deprecated *_CLASSLOADER from AvailableSettings

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

* Remove deprecated HBM2DLL_CREATE_NAMESPACES and DEPRECATED_EXTRA_PHYSICAL_TABLE_TYPES from AvailableSettings

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

* Remove deprecated and duplicated HBM2DDL_DB_NAME, HBM2DDL_DB_VERSION, HBM2DDL_DB_MAJOR_VERSION, HBM2DDL_DB_MINOR_VERSION from AvailableSettings

Signed-off-by: Jan Schatteman <jschatte@redhat.com>
2021-11-17 14:52:52 +01:00
Christian Beikov 710ebe57b0 Get rid of using specialized BasicType implementations and references to those and instead use a BasicTypeReference that is lazily resolved 2021-10-07 08:15:53 +02:00
Andrea Boriero 0941ac7da1 Native query as a function call is no longer supported 2021-10-05 15:39:58 +02:00
Andrea Boriero 95486ce5b1 Implementing Procedure Call 2021-10-05 15:39:58 +02:00
Steve Ebersole 8a8a92ca5e HHH-14844 - Drop JACC integration 2021-09-29 01:08:07 -05:00
Steve Ebersole 3f2d48d7f5 HHH-14837 - Move to Jakarta EE
migration guide
2021-09-27 08:21:36 -05:00
Andrea Boriero 20d09fafe4 Throw Mapping exception when multiple component for the same java class has different property mapping 2021-09-01 10:34:55 +02:00
Steve Ebersole 7fcde66d61 HHH-14524 : Rename SqlType(X) as JdbcType(X) 2021-03-29 11:33:56 -05:00
Steve Ebersole ced4f5e602 Various changes around how basic values are handled in terms of mapping consumption for annotations and how value conversions happen
* Split BasicType "resolution" into 2 - one used for reading (mapping model) versus one used from writing (legacy persister model)
* @SqlTypeCode, @SqlType, @SqlTypeRegistration
* @JavaType, @JavaTypeRegistration
* @Mutability
* jdbc_mappings.adoc section for DomainModel chapter

[*] At the moment, neither @SqlTypeRegistration nor @JavaTypeRegistration support has been implemented
[*] Still need to make sure @Mutability is propogated properly in all the cases
[*] jdbc_mappings.adoc still needs a lot of attention
2020-04-21 16:09:46 -05:00
Steve Ebersole fe25fee834 initial migration guide 2020-04-01 13:50:37 -05:00
Kedar Joshi 61cddad76d Correct JTS version information 2019-01-02 13:53:07 +01:00
Chris Cranford 805aec32b3 HHH-13101 - Document `hibernate.id.disable_delayed_identity_inserts` config setting. 2018-11-14 11:38:12 -05:00
Vlad Mihalcea e9e6b0573f HHH-12973 - Inconsistent identity generation when using the default @SequenceGenerator with a database sequence having the increment size of 1
- add SQL Server JDBC Driver version upgrade note to migration guides
2018-10-12 12:55:25 +03:00
Karel Maesen d33b03e882 HHH-12144 - Add note to migration guide 2018-10-11 21:21:22 +02:00
Guillaume Smet 2fd89dcc1a HHH-12820 Initialize the 5.4 migration guide 2018-07-18 11:40:12 +02:00
Gail Badner 02ff1484be HHH-12687 : Update migration guide 2018-07-04 15:20:09 -07:00
Steve Ebersole 7943fe3fc2 minor migration guide change 2018-05-14 16:01:56 -05:00
Steve Ebersole f7aef1cdf8 prep 5.3.0.CR2 2018-04-27 09:42:09 -05:00
Steve Ebersole c0c0ae1c38 document changes to EnhancementTask in 5.3 migration log 2018-04-19 12:47:00 -05:00
Steve Ebersole e7130605f0 HHH-11356 - Adjust the 2nd-Cache SPIs to better reflect supported uses 2018-04-19 12:32:27 -05:00
Andrea Boriero 6cefa865b0 HHH-12454 - Offer flag to consider id generator with local scope (legacy non JPA behavior) 2018-04-16 09:47:09 -05:00
Steve Ebersole f432ecea68 HHH-11356 - Adjust the 2nd-Cache SPIs to better reflect supported uses
HHH-12323 - Update Statistics API and SPI based on changes to 2nd level caching changes
2018-03-22 13:25:12 -05:00
Asier Lostalé f44555fd6a HHH-12388 - User Guide typo fixes 2018-03-14 13:14:19 +02:00
Andrea Boriero 39fb2c89a1 HHH-12267 - Update migration guide to cover Generators name scope changes 2018-01-31 15:34:49 +02:00
Steve Ebersole 350b9d2184 prepare for 5.3.0.Beta1 2018-01-17 22:03:15 -06:00
Andrea Boriero 02e8b95f5b HHH-12177 - Update migration guide 2017-12-22 12:00:34 -06:00
Andrea Boriero 9af5655100 HHH-12148 - Add setting indicating if the value stored in the table used by the @TableGenerator is the last value used or the next value to be used 2017-12-13 06:19:32 -06:00
Steve Ebersole 5e0274adbb HHH-12116 - Positional parameters report position as name
HHH-12101 - Remove support for legacy HQL-style positional parameters
2017-12-13 06:19:30 -06:00
Gail Badner a9b0305004 HHH-11614 : Update migration guide with example for converting variable-length strings to PostgreSQL Large Objects 2017-09-11 11:51:59 -07:00
Gail Badner d04a409335 HHH-11614 : Update migration guide 2017-09-11 11:51:59 -07:00
Andrea Boriero bbcab0f75c HHH-11808 - Update migration guide and documentation 2017-06-27 09:07:21 +03:00
Gail Badner b22f38b00f HHH-11709 : Update migration guide 2017-04-28 19:32:30 -07:00
Andrei Solntsev 42f8d033c1 HHH-11547 fix some typos in documentation 2017-03-05 17:28:34 -05:00
Chris Cranford aa3f913857 HHH-11194 - Add setting to allow enabling legacy 4.x LimitHandler behavior (removed delegation).
Fix broken test on SQL Server and propagate the legacy behavior even when we extend the SQL Server of the Ingres base Dialects
2016-11-24 10:49:45 +02:00
Chris Cranford 3cb2390b3d 10664 - Prepare Envers for 5.2 - Deprecated AuditReader getCurrentRevision. 2016-05-31 23:40:03 -05:00
Naros 5331b32a60 HHH-10688 - Update user guide and migration document regarding envers deprecated settings. 2016-05-06 20:40:33 -05:00
Steve Ebersole 7b3570149d HHH-10664 - Prep 6.0 feature branch - merge hibernate-entitymanager into hibernate-core (test fixup) 2016-05-06 13:12:38 -05:00
Steve Ebersole 1ece6056d1 HHH-10664 - Prep 6.0 feature branch - merge hibernate-entitymanager into hibernate-core (fix test failures) 2016-05-06 13:12:37 -05:00
Steve Ebersole 87e3f0fd28 HHH-10664 - Prep 6.0 feature branch - merge hibernate-entitymanager into hibernate-core (first sucessful full compile of consolidated hibernate-core) 2016-05-06 13:12:32 -05:00
Steve Ebersole 6d08b3526c 5.1 migration guide 2016-02-09 22:44:05 -06:00
vladmihalcea c2ece0108e Migrate User Guide from Docbook to Asciidoctor 2016-01-11 18:07:58 +02:00
Steve Ebersole c2ad82ef2b HHH-10043 - Migration Guide 2015-08-20 14:29:48 -05:00