Christoph Strobl
3714c3e2d1
Add AOT test with custom base repository
4 months ago
Christoph Strobl
51b3373473
Prepare issue branch.
4 months ago
Mark Paluch
c1829998ae
Remove accidental `org.jetbrains:annotations` usage.
...
See spring-projects/spring-data-build#2670
4 months ago
Mark Paluch
ad6ae48c2d
Polishing.
...
Use simple class name for named stored procedure derivation.
See #4032
4 months ago
Mark Paluch
5af0c40f53
Consistently use JPA metamodel to determine entity name.
...
We now use JpaMetamodelEntityMetadata where possible to determine the entity name. Previously, we defaulted in many places to DefaultJpaEntityMetadata not considering XML-based entity names and also using improper unqualifying of entity names that lead to usage of Class.getSimpleName() without considering inner class prefixes.
While this commit introduces a consistent scheme, we still have to resolve some package tangles and improve our design as entity information duplicates parts of JpaPersistentEntity and causing duplicate introspections for JpaEntityInformationSupport.
We will have to revisit the design with #4037 .
Closes #4032
4 months ago
Mark Paluch
596e07ea59
Consider EntityName in JpqlQueryBuilder.
...
Closes #4036
4 months ago
Mark Paluch
4adf2e33dc
Polishing.
...
Add type parameters to Javadoc, remove final keywords, rewording.
See #4035
4 months ago
Mark Paluch
472a359e22
Revise `PredicateSpecification` for improved reuse.
...
Accept From instead of Root and apply the PredicateSpecification type parameter to From's target type. Dropping the type reduces our assumptions, it allows also for improved PredicateSpecification reuse without requiring a specific design choice of whether the PredicateSpecification applies to Root directly or a different From (Join, Embeddable, …).
Closes #4035
4 months ago
Mark Paluch
7a66d65727
Polishing.
...
Simplify tests.
See #4029
Original pull request: #4030
4 months ago
Christoph Strobl
c0d18705e5
Evaluate entity name for `StringAotQuery` from `EntityMetadata`.
...
Closes #4029
Original pull request: #4030
4 months ago
Mark Paluch
a15ebdbcba
Polishing.
...
Refine error message format. Consistently use QueryCreationException.
See #2736
Original pull request: #2738
4 months ago
Oliver Drotbohm
cff0724afe
Improve query method validation exceptions for declared queries.
...
When validating manually declared queries on repositories, the exception that captures the query to validate now actually also reports it in the exception message.
Closes : #2736 .
Original pull request: #2738
4 months ago
Tran Ngoc Nhan
fc6f18a901
Remove unused imports.
...
Signed-off-by: Tran Ngoc Nhan <ngocnhan.tran1996@gmail.com>
Closes #3968
4 months ago
Mark Paluch
9e135f0aaf
Polishing.
...
Reformat code and reorder author tags.
See #4025
4 months ago
KNU-K
1334008018
Replace recursion in `QueryRenderer.isSubquery(…)` with loop.
...
Signed-off-by: KNU-K <knukang334@gmail.com>
Closes #4025
4 months ago
Mark Paluch
73a16326b6
Update CI Properties.
...
See #4011
4 months ago
Mark Paluch
4010a93a0b
Polishing.
...
Refine Javadoc.
See #4023
Original pull request: #4024
4 months ago
Peter Aisher
ee039fe094
Constistent `unrestricted()` behaviour for all `*Specification` types.
...
Closes #4023
Original pull request: #4024
Signed-off-by: Peter Aisher <peter.aisher@gmail.com>
4 months ago
Mark Paluch
a5b5c2e610
Adapt to AOT Infrastructure changes in Commons.
...
See spring-projects/spring-data-commons#3267
4 months ago
Mark Paluch
03e986243c
Update GitHub Actions.
...
See #4011
5 months ago
Mark Paluch
b8ebcf9ded
Document placeholder and Ant-style pattern support for `@Enable…Repositories`
...
Closes spring-projects/spring-data-commons#3366
5 months ago
Mark Paluch
f0345f5ce6
Polishing.
...
Add missing Override annotations.
See #3999
Original pull request #4000
5 months ago
Mark Paluch
10c80247f8
Fix unpaged revision query.
...
We now return all results for an unpaged query.
Closes #3999
Original pull request #4000
5 months ago
Mark Paluch
2dacd711ab
Upgrade to Hibernate 7.1.1.Final.
...
Closes #4016
5 months ago
Mark Paluch
8b4d601886
Add `TypeCollectorFilters` to filter `$$_hibernate` fields and methods.
...
Closes #4014
5 months ago
Mark Paluch
811266f71c
Polishing.
...
Align assignability check for modifying execution.
See #4015
5 months ago
Mark Paluch
9f403908a4
Fix method return for delete execution returning primitive numbers.
...
We now properly check for assignability of numeric values considering primitive types.
Closes #4015
5 months ago
Mark Paluch
aa900658b3
Polishing.
...
Introduce EnversRevisionEntityInformation to reflect envers-specific revision information. Refactor DefaultRevisionEntityInformation to enum to keep a singleton around. Refine tests.
See #2850
Original pull request: #4003
5 months ago
ChaedongIm
8c3a0679bd
Allow customization of `@RevisionTimestamp` property name.
...
We now detect the property name annotated with RevisionTimestamp to determine the property name from the model instead of assuming a hard-coded timestamp property.
Signed-off-by: ChaedongIm <chaedong.im.dev@gmail.com>
See #2850
Original pull request: #4003
5 months ago
Mark Paluch
18db5faf26
Refine HQL rendering of CTE with SEARCH clause.
...
Add tests for CYCLE, ensure no space between search order items.
Closes #4012
5 months ago
Mark Paluch
bc234f0406
Fix nested EQL and JPQL aggregation function argument grammar.
...
We now accept a wider range of function arguments instead of limiting to property paths.
Closes #4013
5 months ago
Christoph Strobl
c3187fb57f
After release cleanups.
...
See #3977
5 months ago
Christoph Strobl
243ffd70e0
Prepare next development iteration.
...
See #3977
5 months ago
Christoph Strobl
a38893577b
Release version 4.0 M6 (2025.1.0).
...
See #3977
5 months ago
Christoph Strobl
b379b83207
Prepare 4.0 M6 (2025.1.0).
...
See #3977
5 months ago
Mark Paluch
6a26a73cdd
Refine JavaPoet usage.
...
See #4007
5 months ago
Christoph Strobl
de7c568455
Follow changes in data-commons AOT support.
...
Closes : #4007
5 months ago
Mark Paluch
d881e87f70
Upgrade to Eclipselink 5.0.0-B10.
...
Closes #4006
5 months ago
Mark Paluch
72dd53ac88
Return deleted entity from derived deleteBy method.
...
We now return the deleted entity and check, guard the delete query against batch deletes if the delete yields more than done result.
Closes #3995
5 months ago
Mark Paluch
9025ca3882
Skip fenced comments in HQL, EQL and JPQL parsers.
...
Align with Hibernate and allow comments also in EQL and JPQL.
Closes #3997
5 months ago
Mark Paluch
f50d3567fe
Polishing.
...
Reinstate original Javadoc, add note about nullability.
Fix contract annotation, refine tests.
See #3992
Original pull request: #3998
5 months ago
희은
a1fbb5a4d2
Reintroduce `Specification.where(Specification)`
...
Reintroduce the overload to improve the migration path for users upgrading to Spring Data JPA 4.0 and to restore the intuitive fluent API but this time, the method does not accept null values.
Closes #3992
Original pull request: #3998
Signed-off-by: 희은 <datakubit2@gmail.com>
5 months ago
Mark Paluch
8ffc585d1f
Polishing.
...
Use refined convenience methods from AotQueryMethodGenerationContext.
See #3991
5 months ago
Mark Paluch
48bc6aa692
Polishing.
...
Add integration tests.
See #3990
Original pull request: #3993
5 months ago
Minho Park
d73a925651
Qualify identifier used in `SimpleJpaRepository.deleteAllByIdInBatch(…)` JPQL.
...
Signed-off-by: Minho Park <g_a_m_e_@naver.com>
Closes #3990
Original pull request: #3993
5 months ago
Mark Paluch
6bf3610633
Refine AOT fragment constructor parameter lookup.
...
Closes #3991
5 months ago
Mark Paluch
f13eaf5ec4
Add missing nullability type constraints to `findBy` methods.
...
Closes #3986
5 months ago
Mark Paluch
71f15d8ec9
Reinstate parameter per entity for batch deletes using EclipseLink.
...
EclipseLink doesn't support WHERE e IN (:entities) and requires e = ?1 OR e = ?2 OR … style.
Closes #3983
5 months ago
Mark Paluch
64c5743c95
Add tests to verify entityName resolution in templated native query methods.
...
Closes #3979
5 months ago
Mark Paluch
e4fe9e22e7
Polishing.
...
Update documentation for AOT support.
See #3977
6 months ago