2420 Commits

Author SHA1 Message Date
Mark Paluch
faa526f823 Polishing.
Refine readme.

See #3892
2025-06-17 09:37:50 +02:00
Mark Paluch
961d825fd8 After release cleanups.
See #3891
2025-06-13 13:42:19 +02:00
Mark Paluch
f3c93ef65a Prepare next development iteration.
See #3891
2025-06-13 13:42:18 +02:00
Mark Paluch
bb662ae6a4 Release version 3.5.1 (2025.0.1).
See #3891
2025-06-13 13:39:34 +02:00
Mark Paluch
01a2c72e2f Prepare 3.5.1 (2025.0.1).
See #3891
2025-06-13 13:39:13 +02:00
Mark Paluch
261d693d8b Polishing.
Simplify regex.

See #3911
2025-06-12 08:31:46 +02:00
hoyeon Jang
b7b9db5a74 Fix typos in query-methods.adoc.
Signed-off-by: hoyeon Jang <hoyeonj981@gmail.com>
Closes #3912
2025-06-11 14:28:08 +02:00
Mark Paluch
a54ad17fec Upgrade to PGJDBC Driver 42.7.7.
Closes #3914
2025-06-11 14:17:43 +02:00
Mark Paluch
72f662793e Polishing.
Remove type parameter to enable usage with Hibernate 6.2.

See: #3425
Original pull request: #3885
2025-06-10 12:28:07 +02:00
Mark Paluch
c260c21301 Fix QueryUtils regex parsing field and function aliases.
Remove leading space requirement, simplify group nesting and replace character class with non-capturing group to avoid a, s and | (pipe) matching.

Closes #3911
2025-06-10 10:28:24 +02:00
Mark Paluch
5bd94409dc Polishing.
Revise PersistenceProvider detection to a EntityManagerFactory-based variant, considering EntityManagerFactory proxying.

See: #3425
Original pull request: #3885
2025-06-06 15:14:34 +02:00
Mark Paluch
c8221aa7c1 Prevent access to EntityManager when looking up PersistenceProvider.
Signed-off-by: Ariel Morelli Andres <amorelliandres@atlassian.com>

Closes: #3425
Original pull request: #3885
2025-06-06 15:13:53 +02:00
Mark Paluch
71ef3215d7 Upgrade to Hibernate 6.6.17.Final.
Closes #3909
2025-06-05 09:22:25 +02:00
Mark Paluch
4838fa104e Polishing.
Move warning suppression to the class-level.

See #3901
2025-06-04 14:48:32 +02:00
Aref
15e40966ba Suppress warnings in tests.
Signed-off-by: Aref <aref.behboudi@veltiston.ai>

Closes: #3901
2025-06-04 14:47:12 +02:00
Mark Paluch
053a4620a0 Consider only top-level properties for tuple query selection.
We now only consider top-level properties for tuple query selection to avoid join products caused by selecting nested relationships.

Closes #3908
2025-06-04 11:21:55 +02:00
Mark Paluch
5a22fbf467 Refine DTO projection rewriting.
We now consider dropping aliases (count(foo) as foo), support subselects and capture individual select items to avoid contextual information loss.

Also, added a series of tests to cover edgecases.

See #3895
2025-06-04 09:17:13 +02:00
Mark Paluch
61a1a8c2c9 Fix potential class-cast exception.
See #3895
2025-06-04 08:45:15 +02:00
Mark Paluch
64d5e70e38 Do not consider JPA-managed types projections.
We now back off from rewriting queries to constructor expressions if a returned type is a JPA-managed one.

See #3895
2025-06-04 08:45:03 +02:00
Mark Paluch
c538a4fcb4 Refrain from rewriting queries without input properties.
We now no longer attempt to rewrite the query if the target type doesn't define input properties (no-args constructor or multiple constructors).

Closes #3895
2025-06-04 08:44:07 +02:00
Mark Paluch
fa9b6815ce Avoid capturing ?& and ?| as bind parameter markers.
We now exclude  `?&` and `?|` from being matched as JDBC-style parameter bind marker.

Closes #3907
2025-06-03 16:53:04 +02:00
Mark Paluch
a9813a7fc0 Document deprecation of Specification.where(…).
Also, document the intent to make methods accepting `Specifications` to be non-nullable.

Closes #3893
2025-05-19 08:46:49 +02:00
Mark Paluch
42463aee13 After release cleanups.
See #3853
2025-05-16 11:31:36 +02:00
Mark Paluch
33d532b4eb Prepare next development iteration.
See #3853
2025-05-16 11:31:35 +02:00
Mark Paluch
527f1b4691 Release version 3.5 GA (2025.0.0).
See #3853
2025-05-16 11:28:30 +02:00
Mark Paluch
9f74166e77 Prepare 3.5 GA (2025.0.0).
See #3853
2025-05-16 11:28:09 +02:00
Mark Paluch
33e694f3a4 Support NullHandling in JSqlParserQueryEnhancer.
Closes #3886
2025-05-15 09:54:11 +02:00
Mark Paluch
7e87a62557 Upgrade to Hibernate 6.6.15.Final.
Closes #3884
2025-05-14 11:07:46 +02:00
Mark Paluch
260d202f4f Support HQL LIMIT/OFFSET without ordering.
Closes #3882
2025-05-12 14:41:40 +02:00
Mark Paluch
16493ff311 Fix EQL and JPQL LIKE with ESCAPE clause parsing.
Closes #3873
2025-05-12 10:06:32 +02:00
Mark Paluch
7d409dbb70 Update CI Properties.
See #3853
2025-05-12 09:33:04 +02:00
Mark Paluch
40347104bd Upgrade to JSqlParser 5.2.
Closes #3846
2025-05-12 09:19:15 +02:00
Mark Paluch
5e3b59081e Upgrade to Upgrade to Hibernate 6.6.14.Final.
Closes #3880
2025-05-12 09:07:02 +02:00
Mark Paluch
255420b917 Update CI Properties.
See #3853
2025-05-12 09:00:22 +02:00
Mark Paluch
f36d3df33c Update CI Properties.
See #3853
2025-05-12 08:56:21 +02:00
Mark Paluch
b5f57d4129 Update CI Properties.
See #3853
2025-05-12 08:55:53 +02:00
Mark Paluch
b0a29229c1 Fix JPQL and EQL CAST(…) function parsing.
We now define arithmetic, string, and typed cast functions to support all potential variants of casting supported by JPQL and EQL.

Closes #3863
2025-05-09 15:51:17 +02:00
Mark Paluch
d6ffa68a65 Polishing.
Merge Openfeign setup tabs.

See #3859
2025-05-09 11:28:42 +02:00
Lidoca
a42a0e6935 Document OpenFeign Querydsl usage.
Signed-off-by: Lidoca <32785562+Lidoca@users.noreply.github.com>

Closes #3859
2025-05-09 11:28:40 +02:00
Mark Paluch
fbed6d488c Use dynamic copyright years in documentation, adopt to feature flags.
See #3853
2025-05-09 10:27:22 +02:00
w3n9
f5e3c1d8ef Makes manually assigned id example simpler to understand.
The old version was still valid but a little confusing.

Original pull request #3865
Signed-off-by: w3n9 <w3n9@foxmail.com>

Commit message changed by Jens Schauder
2025-05-06 13:41:16 +02:00
Mark Paluch
26993d2719 Polishing.
Introduce doWithPlainSelect(…) callback for easier filtering of Select subtypes. Add test for known (previously) failing case.

See: #3869
Original pull request: #3870
2025-05-05 17:45:25 +02:00
Diego Pedregal
cfeb314978 Removes PlainSelect casting in JSqlParserQueryEnhancer.
Closes: #3869
Original pull request: #3870

Signed-off-by: Diego Pedregal <diego.p.hidalgo@gmail.com>
2025-05-05 17:45:25 +02:00
Mark Paluch
d463f5fd45 Avoid DTO Constructor Expression rewriting for selection of nested properties.
We back off from rewriting String-based queries to use DTO Constructor expressions if the query selects a property that is assignable to the return type.

Closes #3862
2025-05-05 17:15:27 +02:00
Mark Paluch
43062c4e95 Polishing.
Reformat code. Refine tests.

See #3849
Original pull request: #3856
2025-05-05 14:13:40 +02:00
SWQXDBA
34874febc9 Fix handling of null predicate in Specification.not().
When toPredicate() returns null, Specification.not() now returns
builder.disjunction() instead of builder.not(null). This change
ensures proper handling of null predicates in negated specifications.

Closes #3849
Original pull request: #3856

Signed-off-by: SWQXDBA <983110853@qq.com>
2025-05-05 14:13:21 +02:00
Mark Paluch
6ac5536061 After release cleanups.
See #3815
2025-04-22 11:26:48 +02:00
Mark Paluch
0776dea5a4 Prepare next development iteration.
See #3815
2025-04-22 11:26:47 +02:00
Mark Paluch
1c8435e5e2 Release version 3.5 RC1 (2025.0.0).
See #3815
2025-04-22 11:24:11 +02:00
Mark Paluch
070c6c905d Prepare 3.5 RC1 (2025.0.0).
See #3815
2025-04-22 11:23:50 +02:00