Commit Graph

13358 Commits

Author SHA1 Message Date
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 a1ea84a3ac two very minor doc fixes 2022-01-06 23:26:21 +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 1131292fa9 - fix apparently illegal Oracle identifier 2022-01-05 20:51:41 -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
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 2666f3f6e0 Add feature requirement for multi-insert test 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 4e29f8d9de Add table to readme showing how to test with every database 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
Gavin King bddbb4d287 examples for native functions 2022-01-05 13:16:52 +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 31a795b8c7 quotes not needed for enum values in doc example 2022-01-05 00:42:05 +01:00
Gavin King e1d1d21a30 move a passage to a place it's easier to find 2022-01-05 00:42:05 +01:00
Gavin King 2d55d9a3a8 document id(), version(), naturalid() functions 2022-01-04 23:07:39 +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 4ae977a41e disable a test on Sybase
(missed this failure)
2022-01-04 18:06:43 +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 b1aea5f993 document the existence of quoted identifiers 2022-01-04 16:18:55 +01:00
Gavin King 1934236314 document that you can insert multiple rows with 'values' 2022-01-04 15:05:42 +01:00
Gavin King ef53b2a2de make the BNFs more readable
and add one for grouped item
2022-01-04 15:05:42 +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