7753 Commits

Author SHA1 Message Date
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
Gavin King
5ae55d7bfb
redesign 'collate' and add tests
* and add tests and documentation for 'collate'
* much better and less-ambiguous syntax for collate(), consistent with cast() and treat()
* reimplement collate() using the function infrastructure
* implement collate() for HSQLDB

This feature was previously untested and at least partially broken, and was making a mess 
of the HQL grammar.
2022-01-02 13:39:33 +01:00
Gavin King
a61ffbfea7 fix insert ... values (...) statements
they break when using a MultiTableInsertQueryPlan, but we probably don't need one
2022-01-01 23:52:27 +01:00
Gavin King
df72d7db3d reenable some LiteralTests 2022-01-01 23:36:21 +01:00
Gavin King
f9afab5492 minor cleanups to the grammar
- simplify two rules that were unnecessarily flexible
- remove useless parens
- rename some rules for readability
- clean up some warnings in SemanticQueryBuilder
2022-01-01 22:31:28 +01:00
Fabio Massimo Ercoli
614ecbdc57 Remove PASS_DISTINCT_THROUGH flag 2021-12-31 11:46:15 -06:00
Fabio Massimo Ercoli
aa6035a9fd Remove use of PASS_DISTINCT_THROUGH from distinct test
Property will be deleted in a subsequent commit
2021-12-31 11:39:23 -06:00
Gavin King
4a88399bb5 remove name() from @ColumnDefault + @GeneratedColumn
after all that, we decided it wasn't necessary :-D
2021-12-31 18:34:57 +01:00
Gavin King
aa08c90b52 add some overrides that should not be necessary
Javac doesn't mind, but IntelliJ seems to get confused
2021-12-31 18:11:38 +01:00
Gavin King
f2c3ac7db7 remove some obsolete code from AnnotationBinder 2021-12-31 16:02:23 +01:00
Gavin King
4ce27e70ae introduce @GeneratedColumn annotation
to make it easy to produce portable DDL with 'generated always as'
or equivalent

also add 'name' to @ColumnDefault, and add some missing tests for
basic usage patterns of @ColumnDefault
2021-12-31 16:01:32 +01:00
Gavin King
37010a1a8d fix a broken @see annotation + remove one 2021-12-31 16:01:11 +01:00
Steve Ebersole
b7caec4b68 @CollectionClassificationType;
`AvailableSettings.DEFAULT_LIST_SEMANTICS` / MappingDefaults.getImplicitListClassification`;
additional improvements to CollectionSemantics resolution handling from annotations
2021-12-30 13:07:46 -06:00
Steve Ebersole
452f114957 @CollectionType + better CollectionSemantics resolution handling from annotations;
HHH-9688 - Combination of @OrderBy and @SortComparator

HHH-9688 was simple change in the code I was working on already, so went ahead and just did it
2021-12-30 09:22:13 -06:00
Steve Ebersole
e16c78f7ea log4j config 2021-12-29 11:40:24 -06:00
Gavin King
bf1eec69d0 minor fixes to generic types in QueryParameterBinding
gets rid of some warnings
2021-12-29 12:56:06 +01:00
Gavin King
537953e12c more cleanups to the Javadoc for Query 2021-12-29 12:52:04 +01:00
Gavin King
553688ca67 fix the javadoc of Query.getSingleResult()
which incorrectly described the semantics of this method

and add tests for this stuff, since we didn't seem to have them
2021-12-29 10:35:02 +01:00
Gavin King
0b2a357670 add MappingMetamodel.isEntityClass() and clean up raw types 2021-12-27 22:15:30 +01:00
Gavin King
0bf2365955 fix signature of createQuery(CriteriaUpdate|CriteriaDelete) 2021-12-27 22:15:30 +01:00
Gavin King
ac845bca31 impl the new overload of createNativeQuery()
- and add a second new overload
- tolerate non-entity classes as arguments to these methods
- the overloads accept a result class, and return a typed Query<R>
2021-12-27 22:15:30 +01:00
Gavin King
4ea59b4961 deprecate a bunch of methods of Query + QueryProducer 2021-12-27 22:15:30 +01:00
Gavin King
8a68ee49c1 remove wildcards from APIs in Query hierarchy
I hate doing this but it's necessary since Query is often
used as a raw type, and the wildcards result in additional
compiler warnings at the usage site

Also clean up some other warnings I encountered in this code
2021-12-27 22:15:30 +01:00