Mark Paluch
46453bc9d4
Polishing.
...
Refine readme.
See #3892
2025-06-17 09:38:23 +02:00
Mark Paluch
89d059f7b5
Polishing.
...
Simplify regex.
See #3911
2025-06-12 08:31:50 +02:00
hoyeon Jang
68af434d82
Fix typos in query-methods.adoc.
...
Signed-off-by: hoyeon Jang <hoyeonj981@gmail.com >
Closes #3912
2025-06-11 14:27:51 +02:00
Mark Paluch
12050a75d4
Upgrade to PGJDBC Driver 42.7.7.
...
Closes #3914
2025-06-11 14:17:24 +02:00
Mark Paluch
3d28143f22
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:28 +02:00
Mark Paluch
98e801cfd5
Polishing.
...
Revise PersistenceProvider detection to a EntityManagerFactory-based variant, considering EntityManagerFactory proxying.
See: #3425
Original pull request: #3885
2025-06-06 15:13:31 +02:00
Ariel Morelli Andres
ab40236949
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:12:00 +02:00
Mark Paluch
52a5e317a7
Polishing.
...
Move warning suppression to the class-level.
See #3901
2025-06-04 14:46:04 +02:00
Aref
1dcf910622
Suppress warnings in tests.
...
Signed-off-by: Aref <aref.behboudi@veltiston.ai >
Closes : #3901
2025-06-04 14:45:36 +02:00
Mark Paluch
83be337b2c
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:22:00 +02:00
Mark Paluch
ea9e6e15bb
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:16:22 +02:00
Mark Paluch
205912ccc2
Fix potential class-cast exception.
...
See #3895
2025-06-04 09:04:23 +02:00
Mark Paluch
2f620400d5
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:46:29 +02:00
Mark Paluch
6cb02db8c6
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:45:31 +02:00
Mark Paluch
b37a334549
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:56:54 +02:00
Christoph Strobl
1cad9074fd
Resolve deprecation warnings in JpaRuntimeHints.
...
See: #3905
2025-06-02 10:31:21 +02:00
Christoph Strobl
d3e088f5b9
Add missing reflection hint for DefaultQueryEnhancerSelector.
...
Closes : #3905
2025-06-02 10:29:00 +02:00
Christoph Strobl
936bb31f3a
Upgrade to Hibernate 7.0 Final.
...
Closes : #3896
2025-05-21 13:47:07 +02:00
Mark Paluch
c35e30ed52
After release cleanups.
...
See #3854
2025-05-16 14:18:48 +02:00
Mark Paluch
7bfb527179
Prepare next development iteration.
...
See #3854
2025-05-16 14:18:46 +02:00
Mark Paluch
5df7b98122
Release version 4.0 M3 (2025.1.0).
...
See #3854
2025-05-16 14:16:17 +02:00
Mark Paluch
e063f1691e
Prepare 4.0 M3 (2025.1.0).
...
See #3854
2025-05-16 14:15:56 +02:00
Mark Paluch
3f17014b9f
Capture @EnableJpaRepositories configuration for AOT processing.
...
Closes #3838
2025-05-16 12:25:59 +02:00
Mark Paluch
88da07e555
Polishing.
...
Move off deprecated API.
See #3887
2025-05-16 12:25:59 +02:00
Mark Paluch
438de0c2e0
Upgrade to Hibernate 7.0 CR2.
...
Closes #3887
2025-05-16 12:25:59 +02:00
Mark Paluch
eeca4df36f
Detect PersistenceUnitManager and PersistenceManaged types in JpaRepositoryContributor.
...
See #3875
2025-05-16 12:25:59 +02:00
Mark Paluch
01eb2b833d
Polishing.
...
Reuse setReturningFunction and genericFunctionArguments structure for easier extension. Split fromRoot into separate parser function fragments.
Fix trailing spaces.
See: #3864
Original pull request: #3879
2025-05-16 12:25:59 +02:00
oscarfanchin
2ebe4caba6
Add support for Set-Returning Functions (SRF) to HQL parser and query rendering.
...
Signed-off-by: oscarfanchin <oscar.fanchin@gmail.com >
Closes : #3864
Original pull request: #3879
2025-05-16 12:25:59 +02:00
Mark Paluch
85fcbcd2fb
Support HQL LIMIT/OFFSET without ordering.
...
Closes #3882
2025-05-16 12:25:59 +02:00
Mark Paluch
6bffef2a58
Polishing.
...
See #3868
2025-05-16 12:25:58 +02:00
Mark Paluch
50113038aa
Fix EQL and JPQL LIKE with ESCAPE clause parsing.
...
Closes #3873
2025-05-16 12:25:58 +02:00
Mark Paluch
c96bf905b2
Upgrade to Oracle OJDBC 23.8.0.25.04.
...
Closes #3881
2025-05-16 12:25:58 +02:00
Mark Paluch
8556a7b968
Update CI Properties.
...
See #3854
2025-05-16 12:25:58 +02:00
Christoph Strobl
e802143baf
Polishing.
...
Original Pull Request: #3868
2025-05-16 12:25:58 +02:00
Mark Paluch
17a59905a7
Explore returning Search Results.
...
Closes : #3868
2025-05-16 12:25:58 +02:00
Mark Paluch
e6a008cf08
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-16 12:25:58 +02:00
Mark Paluch
b66c96d363
Use SelectionQuery.getResultCount() for count queries if possible.
...
We now use Hibernate's built-in mechanism to obtain the result count if there is an enclosing transaction. Without the transaction, the session is being closed and we cannot run the query.
Closes #3456
2025-05-16 12:25:57 +02:00
Mark Paluch
219e5c58e4
Fliter jakarta.persistence types from AOT Metamodel.
...
Otherwise, Hibernate fails with weird resolution errors.
See #3872
2025-05-16 12:25:57 +02:00
Mark Paluch
01e4e75617
Use isolated Hibernate EntityManager for AOT contribution.
...
Closes #3876
2025-05-16 12:25:57 +02:00
Mark Paluch
e1cec313f3
Use LocalVariableNameFactory in repository contributor.
...
Closes #3875
2025-05-16 12:25:57 +02:00
Mark Paluch
65214fb0b1
Provide JpaRepositoryFragmentsContributor in JPA Repository Factory and Repository Factory Bean.
...
Closes #3874
2025-05-16 12:25:57 +02:00
Christoph Strobl
eb4ad0923d
Upgrade to Hibernate 7.0.0.CR1.
...
Closes : #3872
2025-05-16 12:25:57 +02:00
Mark Paluch
7f20f10b30
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-16 12:25:56 +02:00
Diego Pedregal
b3c0210f17
Removes PlainSelect casting in JSqlParserQueryEnhancer.
...
Closes : #3869
Original pull request: #3870
Signed-off-by: Diego Pedregal <diego.p.hidalgo@gmail.com >
2025-05-16 12:25:56 +02:00
Mark Paluch
2435807db4
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-16 12:25:56 +02:00
Mark Paluch
41bfd415ca
Polishing.
...
Add fix to Update, Delete, and PredicateSpecification. Reformat code. Refine tests.
See #3849
Original pull request: #3856
2025-05-16 12:25:56 +02:00
SWQXDBA
dc854df741
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-16 12:25:56 +02:00
Mark Paluch
5ebfdb6566
Polishing.
...
Add dynamic projection benchmark.
2025-05-16 12:25:56 +02:00
Mark Paluch
403e1b4d01
Use parameter names in derived JPQL queries.
...
We also use improved parameter naming for keyset queries for easier correlation of values.
Closes #3857
2025-05-16 12:25:56 +02:00
Mark Paluch
ddeac0cacd
After release cleanups.
...
See #3751
2025-05-16 12:25:55 +02:00