Gavin
4e0c131a27
allow parameter in like escape
...
as required by JPQL
2022-01-03 19:06:32 +01:00
Gavin
b55ccabba1
slightly nicer css
2022-01-03 18:39:58 +01:00
Gavin
49d9155f4e
do a much better job of explaining query language concepts
...
and add an example of a union query
2022-01-03 18:39:58 +01:00
Gavin
cf4d2d4338
undocument a fixed limitation
2022-01-03 17:09:18 +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
948eaf7210
more comments on 'fetch join'
...
- and improve a table
- and add BNF for limit/offset and order by
2022-01-02 18:56:07 +01:00
Gavin King
6c28a133dd
enum + Java constant examples
...
+ minor fixes
2022-01-02 16:51:50 +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
c48be75d3b
add an examples with treat() ( #4552 )
...
and slightly reorg doc
2022-01-02 15:45:48 +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
4509cad315
at least *mention* treat()
2022-01-02 03:33:08 +01:00
Gavin King
648dac628f
minor fixes to docs
2022-01-02 03:33:08 +01:00
Gavin King
de7aaa88dc
clean up sample BNFs
2022-01-01 23:52:27 +01:00
Gavin King
9edcf6b0c0
moar tables
2022-01-01 23:52:27 +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
cb787e87a8
mention OffsetDateTime in lterals
2022-01-01 23:52:27 +01:00
Gavin King
ec6540ea56
get rid of useless headings on sample code fragments
2022-01-01 23:52:27 +01:00
Gavin King
0966c7be1d
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
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
Steve Ebersole
7599d3b2dd
Re-write of `Collections` domain model section
...
preliminary work
2021-12-31 16:37:55 -06:00
Steve Ebersole
7c475c8ac0
migration-guide
2021-12-31 16:21:32 -06:00
Fabio Massimo Ercoli
614ecbdc57
Remove PASS_DISTINCT_THROUGH flag
2021-12-31 11:46:15 -06:00
Fabio Massimo Ercoli
f5fdb653a8
Remove not used examples from documentation
2021-12-31 11:46:10 -06:00
Fabio Massimo Ercoli
a9c6caa888
Update the documentation with removed flag
2021-12-31 11:40:49 -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
3f8a0b6776
HQL doc rewrite/restructure
...
- document new features of HQL (literals, functions, filter, rollup)
- rewrite parts of the section dealing with the Query API + execution
- split out a new chapter about the query language, and reorder sections
- remove material about deprecated/removed features
- get rid of use of java.sql.Timestamp from the code!
- make use of repeatable annotations in code examples
2021-12-31 18:35:14 +01: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
Steve Ebersole
9beab38716
Re-write of `Collections` domain model section
...
preliminary work
2021-12-31 11:32:44 -06: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
Steve Ebersole
4ea949d93d
Re-write of `Collections` domain model section
...
preliminary work
2021-12-31 11:08:25 -06:00
Gavin King
f2c3ac7db7
remove some obsolete code from AnnotationBinder
2021-12-31 16:02:23 +01:00
Gavin King
5bcf691d2b
mention @GeneratedColumn in the docs
2021-12-31 16:01:32 +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
Gavin King
82aff7cd8a
add tests for Session.fetch()
2021-12-27 21:25:11 +01:00
Gavin King
313de3f917
implement Session.fetch() for bytecode-enhanced proxies
...
had to add a way to easily set collectionsInDefaultFetchGroup
2021-12-27 21:25:11 +01:00