Commit Graph

7590 Commits

Author SHA1 Message Date
Jan-Willem Gmelig Meyling
33dd19c855 [#2666] Clearer exception for using unsupported SQL Expressions in JPQL 2021-01-01 16:02:56 +01:00
Jan-Willem Gmelig Meyling
a114f2018e Updated CHANGELOG.md 2021-01-01 13:49:57 +01:00
Jan-Willem Gmelig Meyling
f323402c6c Updated CHANGELOG.md 2021-01-01 13:40:52 +01:00
Jan-Willem Gmelig Meyling
f1e0197284
Merge pull request #2667 from querydsl/fix-inserts
Support HQL Subquery Insert Clause
2021-01-01 13:34:53 +01:00
Jan-Willem Gmelig Meyling
d9135b228a
Merge pull request #2605 from jwgmeligmeyling/issue/2053
[#2504] [#2053] Fix fetchResults for GROUP BY and HAVING in JPQL
2021-01-01 13:24:24 +01:00
Jan-Willem Gmelig Meyling
85c8e89934
Merge pull request #2707 from querydsl/i1941
Remove dots from MDC log fields.
2021-01-01 13:23:00 +01:00
Jan-Willem Gmelig Meyling
5dac034f9c
Merge pull request #2685 from querydsl/kotlin
[#2684] Provide Kotlin example project
2020-12-31 19:48:24 +01:00
Wyko Rijnsburger
2362416d26 Remove dots from MDC log fields. 2020-12-31 19:46:16 +01:00
Jan-Willem Gmelig Meyling
c75ef4cafd
Merge pull request #2530 from jwgmeligmeyling/jpa-treated-path
[#658] Support JPQL Treated paths for WHERE clause
2020-12-31 19:45:05 +01:00
Jan-Willem Gmelig Meyling
942812f7a3
Merge pull request #2706 from querydsl/memory-leak-template-cache
[#2218] Store cached templates weakly
2020-12-31 19:43:42 +01:00
Jan-Willem Gmelig Meyling
5a164b239f
Merge pull request #2580 from heesuk-ahn/fix/jpa-sql-query-fetch-results-bug
[fixes #2579] fix: added `forCount` conditional statement for skip transform logic when countQuery
2020-12-31 19:43:13 +01:00
Jan-Willem Gmelig Meyling
98876e1c60
Merge pull request #2674 from querydsl/issue/2479
[#2479] Migrate off of JSR305
2020-12-31 19:41:32 +01:00
Jan-Willem Gmelig Meyling
63ddf21b04 Test if clean deploy fixes snapshot deployment 2020-12-31 18:54:41 +01:00
Jan-Willem Gmelig Meyling
b14a12937f [#2684] Provide Kotlin example project 2020-12-31 18:00:07 +01:00
Jan-Willem Gmelig Meyling
60e2f3a901 [#658] Support JPQL Treated paths for WHERE clause
JPA 2.1 introduced the TREAT operator for explicit casting. Initial support for TREAT in the FROM clause was added in PR #705. However, the specification also describes the notion of `treated_subpath` expressions (chapter 4.4.4.1) that are allowed in the WHERE clause of a query.

The syntax is as follows:

> ```
> treated_subpath ::= TREAT(general_subpath AS subtype)
>
> single_valued_path_expression ::= qualified_identification_variable | TREAT(qualified_identification_variable AS subtype) | state_field_path_expression | single_valued_object_path_expression
> ```

And can be used as such:

```SQL
SELECT e FROM Employee e JOIN e.projects p WHERE TREAT(p AS LargeProject).budget > 1000
```

(Example from chapter 4.4.9).

This pull request adds the support for treated subpaths in QueryDSL. It does so by introducing a new `PathType` and convenience method `JPAExpressions.treat`.
2020-12-31 17:59:34 +01:00
Jan-Willem Gmelig Meyling
6d612d9435 [#2504] [#2053] Fix fetchResults for GROUP BY and HAVING in JPQL" 2020-12-31 17:56:06 +01:00
Jan-Willem Gmelig Meyling
eb99d5121b Fix HQL insert from subquery queries 2020-12-31 17:53:55 +01:00
Jan-Willem Gmelig Meyling
0fb26e84c8 [#2479] Migrate off of JSR305 2020-12-31 17:52:35 +01:00
Jan-Willem Gmelig Meyling
f62c06cac4 [#2218] Store cached templates weakly
Fixes #2218
2020-12-31 17:18:44 +01:00
Jan-Willem Gmelig Meyling
152c140296 Update changelog / release notes 2020-12-31 17:15:07 +01:00
Jan-Willem Gmelig Meyling
f00a5593c2 Remove Guava use from MongoDB Document API 2020-12-31 17:14:56 +01:00
Jan-Willem Gmelig Meyling
4f149b8639
Merge pull request #2643 from daniel-shuy/remove-joda-time
[#2025] querydsl-sql : Change Joda-Time to optional
2020-12-31 16:40:06 +01:00
Jan-Willem Gmelig Meyling
45e88aa55b Merge remote-tracking branch 'origin/master' into remove-joda-time 2020-12-31 16:39:44 +01:00
Jan-Willem Gmelig Meyling
b39d9f115a
Merge pull request #2676 from querydsl/java-8-2
Replace Guava API's with Java 8 ones
2020-12-31 16:32:02 +01:00
Jan-Willem Gmelig Meyling
8d7df5f38e Merge remote-tracking branch 'origin/master' into java-8-2 2020-12-31 16:31:43 +01:00
Jan-Willem Gmelig Meyling
aa15195268 Update Changelog 2020-12-31 15:57:42 +01:00
Jan-Willem Gmelig Meyling
9560e01e3d
Merge pull request #2672 from querydsl/java-8
Target Java 8 for compilation
2020-12-31 15:49:28 +01:00
Jan-Willem Gmelig Meyling
31a8c82c5d Merge branch 'java-8' into java-8-2 2020-12-31 15:27:45 +01:00
Jan-Willem Gmelig Meyling
44eb2420f9 Make Hibernate 5 the default and update changelog 2020-12-31 15:09:03 +01:00
Jan-Willem Gmelig Meyling
8e4769ad17 Add Joda as test dependency for querydsl-maven-plugin 2020-12-31 14:17:55 +01:00
Daniel Shuy
c0be3df6dc Fix maven-enforcer-plugin requireBackwardCompatibility excludes 2020-12-30 15:48:00 +08:00
Daniel Shuy
846738eaa4 Replace SimpleDateFormat with JSR310 DateTimeFormatter 2020-12-30 15:48:00 +08:00
Jan-Willem Gmelig Meyling
98a9a8e90c Converge Joda-Time versions and bump them to latest 2020-12-29 13:19:03 +08:00
Daniel Shuy
1db5af8838 Change joda-time dependency to optional 2020-12-29 13:18:15 +08:00
Daniel Shuy
176a3d215c Replace Joda-Time DateTimeFormatter with ThreadLocal<SimpleDateFormat> 2020-12-29 13:18:15 +08:00
Daniel Shuy
0b2a028a1e Conditionally initialize Joda-Time converters only if Joda-Time is available 2020-12-29 13:18:15 +08:00
Daniel Shuy
799b6f1277 Add AbstractJodaTimeDateTimeType 2020-12-29 13:18:15 +08:00
Jan-Willem Gmelig Meyling
1bbf5be925
Merge pull request #2689 from mp911de/issue/mongodb-document-api
Add support for MongoDB Document API
2020-12-28 22:23:00 +01:00
Jan-Willem Gmelig Meyling
091569e394 Remove IgnoreJRERequirement annotations from JRE310 types 2020-12-28 18:58:51 +01:00
Jan-Willem Gmelig Meyling
110c3be7da Remove Guava as dependency 2020-12-28 18:22:29 +01:00
Jan-Willem Gmelig Meyling
1c7f72e901 Merge branch 'issue/2671' into java-8-2 2020-12-28 16:06:53 +01:00
Jan-Willem Gmelig Meyling
15da5c069f [#2697] Use ECJ compiler on JRE's without compiler for Alias.* 2020-12-28 15:35:42 +01:00
zieunx
9eeb13f329 Change 'Boolean.valueOf()' to 'Boolean.parseBoolean()'
- These variables are not used as 'Boolean' Object.
- Java provides Autoboxing and Unboxing, but this is an unnecessary process.
2020-12-28 15:35:25 +01:00
Kochkurov
15c2a9e496 [#2395] Close resources on exception in AbstractSQLQuery 2020-12-28 15:34:55 +01:00
Jan-Willem Gmelig Meyling
f20697e9a1 [#2671] Make Alias.* thread-safe 2020-12-28 15:16:43 +01:00
Jan-Willem Gmelig Meyling
563694102a Remove Guava usage in querydsl-scala 2020-12-28 14:48:29 +01:00
Jan-Willem Gmelig Meyling
d1d3f9dfe5 Subtree merge Mysema Codegen module 2020-12-28 13:38:41 +01:00
Jan-Willem Gmelig Meyling
276efe4d95 Bump ECJ so that sources can be compiled with Java 8 target 2020-12-28 11:24:13 +01:00
Jan-Willem Gmelig Meyling
67c27d29b6 Target Java 8 and removal of Guava as dependency 2020-12-28 11:24:00 +01:00
Jan-Willem Gmelig Meyling
98607341da Fix LuceneQuery toString 2020-12-25 18:47:10 +01:00