[hibernate/hibernate-orm] 5ae55d: redesign 'collate' and add tests
by Gavin King
Branch: refs/heads/main
Home: https://github.com/hibernate/hibernate-orm
Commit: 5ae55d7bfb01d0ec8fca6f86067fd6d087ff08fd
https://github.com/hibernate/hibernate-orm/commit/5ae55d7bfb01d0ec8fca6f8...
Author: Gavin King <gavin(a)hibernate.org>
Date: 2022-01-02 (Sun, 02 Jan 2022)
Changed paths:
M documentation/src/main/asciidoc/userguide/chapters/query/hql/QueryLanguage.adoc
M hibernate-core/src/main/antlr/org/hibernate/grammars/hql/HqlParser.g4
M hibernate-core/src/main/java/org/hibernate/dialect/Dialect.java
M hibernate-core/src/main/java/org/hibernate/dialect/HSQLDialect.java
M hibernate-core/src/main/java/org/hibernate/dialect/function/CommonFunctionFactory.java
M hibernate-core/src/main/java/org/hibernate/query/hql/internal/SemanticQueryBuilder.java
M hibernate-core/src/main/java/org/hibernate/query/sqm/SemanticQueryWalker.java
M hibernate-core/src/main/java/org/hibernate/query/sqm/function/SqmFunctionRegistry.java
M hibernate-core/src/main/java/org/hibernate/query/sqm/internal/SqmTreePrinter.java
M hibernate-core/src/main/java/org/hibernate/query/sqm/mutation/internal/cte/CteInsertHandler.java
M hibernate-core/src/main/java/org/hibernate/query/sqm/mutation/internal/temptable/InsertExecutionDelegate.java
M hibernate-core/src/main/java/org/hibernate/query/sqm/spi/BaseSemanticQueryWalker.java
M hibernate-core/src/main/java/org/hibernate/query/sqm/sql/BaseSqmToSqlAstConverter.java
R hibernate-core/src/main/java/org/hibernate/query/sqm/tree/expression/SqmCollate.java
A hibernate-core/src/main/java/org/hibernate/query/sqm/tree/expression/SqmCollation.java
M hibernate-core/src/main/java/org/hibernate/sql/ast/SqlAstWalker.java
M hibernate-core/src/main/java/org/hibernate/sql/ast/spi/AbstractSqlAstTranslator.java
M hibernate-core/src/main/java/org/hibernate/sql/ast/spi/AbstractSqlAstWalker.java
R hibernate-core/src/main/java/org/hibernate/sql/ast/tree/expression/Collate.java
A hibernate-core/src/main/java/org/hibernate/sql/ast/tree/expression/Collation.java
M hibernate-core/src/main/java/org/hibernate/sql/ast/tree/expression/Format.java
M hibernate-core/src/main/java/org/hibernate/sql/ast/tree/select/SortSpecification.java
A hibernate-core/src/test/java/org/hibernate/orm/test/query/hql/CollateTests.java
Log Message:
-----------
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.
2 years, 11 months
[hibernate/hibernate-orm] 0966c7: more HQL doc rewriting
by Gavin King
Branch: refs/heads/main
Home: https://github.com/hibernate/hibernate-orm
Commit: 0966c7be1d4981d98ca608345703b7b7f5049302
https://github.com/hibernate/hibernate-orm/commit/0966c7be1d4981d98ca6083...
Author: Gavin King <gavin(a)hibernate.org>
Date: 2022-01-01 (Sat, 01 Jan 2022)
Changed paths:
M documentation/src/main/asciidoc/userguide/chapters/query/hql/Query.adoc
M documentation/src/main/asciidoc/userguide/chapters/query/hql/QueryLanguage.adoc
M documentation/src/main/asciidoc/userguide/chapters/query/hql/extras/predicate_in_bnf.txt
M documentation/src/main/asciidoc/userguide/chapters/query/hql/extras/predicate_like_bnf.txt
M documentation/src/main/asciidoc/userguide/chapters/query/hql/extras/statement_delete_bnf.txt
M documentation/src/main/asciidoc/userguide/chapters/query/hql/extras/statement_insert_bnf.txt
M documentation/src/main/asciidoc/userguide/chapters/query/hql/extras/statement_select_bnf.txt
M documentation/src/main/asciidoc/userguide/chapters/query/hql/extras/statement_update_bnf.txt
M documentation/src/main/java/org/hibernate/userguide/model/Person.java
M documentation/src/test/java/org/hibernate/userguide/hql/HQLTest.java
Log Message:
-----------
more HQL doc rewriting
much better documentation for HQL statement types
rewrite section on predicates and logical operators
rewrite from/join section
stop shouting so much
document that H6 auto-removes non-distinct entity results
document limit/offset
document set operators and 'cross join'
slight reorg of Query API chapter, and new title
use "ordinal" instead of "positional" for parameters
Commit: ec6540ea567062d7a24ceb58c35481c1276464e6
https://github.com/hibernate/hibernate-orm/commit/ec6540ea567062d7a24ceb5...
Author: Gavin King <gavin(a)hibernate.org>
Date: 2022-01-01 (Sat, 01 Jan 2022)
Changed paths:
M documentation/src/main/asciidoc/userguide/chapters/query/hql/QueryLanguage.adoc
Log Message:
-----------
get rid of useless headings on sample code fragments
Commit: cb787e87a80a025936f1a39637d7daba2cdf8f2c
https://github.com/hibernate/hibernate-orm/commit/cb787e87a80a025936f1a39...
Author: Gavin King <gavin(a)hibernate.org>
Date: 2022-01-01 (Sat, 01 Jan 2022)
Changed paths:
M documentation/src/main/asciidoc/userguide/chapters/query/hql/QueryLanguage.adoc
Log Message:
-----------
mention OffsetDateTime in lterals
Commit: a61ffbfea7b21e05603d01c462e30cec24beabf4
https://github.com/hibernate/hibernate-orm/commit/a61ffbfea7b21e05603d01c...
Author: Gavin King <gavin(a)hibernate.org>
Date: 2022-01-01 (Sat, 01 Jan 2022)
Changed paths:
M hibernate-core/src/main/java/org/hibernate/query/sqm/internal/QuerySqmImpl.java
Log Message:
-----------
fix insert ... values (...) statements
they break when using a MultiTableInsertQueryPlan, but we probably don't need one
Commit: 9edcf6b0c00df9dbd4a18142b59e311a2e06a8a2
https://github.com/hibernate/hibernate-orm/commit/9edcf6b0c00df9dbd4a1814...
Author: Gavin King <gavin(a)hibernate.org>
Date: 2022-01-01 (Sat, 01 Jan 2022)
Changed paths:
M documentation/src/main/asciidoc/userguide/chapters/query/hql/QueryLanguage.adoc
Log Message:
-----------
moar tables
Commit: de7aaa88dcff2a4dbfe8e99ef9c63279e181505e
https://github.com/hibernate/hibernate-orm/commit/de7aaa88dcff2a4dbfe8e99...
Author: Gavin King <gavin(a)hibernate.org>
Date: 2022-01-01 (Sat, 01 Jan 2022)
Changed paths:
M documentation/src/main/asciidoc/userguide/chapters/query/hql/QueryLanguage.adoc
R documentation/src/main/asciidoc/userguide/chapters/query/hql/extras/predicate_ilike_bnf.txt
M documentation/src/main/asciidoc/userguide/chapters/query/hql/extras/predicate_in_bnf.txt
R documentation/src/main/asciidoc/userguide/chapters/query/hql/extras/root_entity_ref_bnf.txt
M documentation/src/main/asciidoc/userguide/chapters/query/hql/extras/searched_case_bnf.txt
M documentation/src/main/asciidoc/userguide/chapters/query/hql/extras/simple_case_bnf.txt
R documentation/src/main/asciidoc/userguide/chapters/query/hql/extras/substring_bnf.txt
Log Message:
-----------
clean up sample BNFs
Compare: https://github.com/hibernate/hibernate-orm/compare/df72d7db3dac...de7aaa8...
2 years, 12 months