Comments (5)
This should be all in place now.
from spring-data-commons.
Thank you @dodgex for raising the issue. Let me take this to the team.
from spring-data-commons.
Thanks for bringing this up. I've introduced a cache for the query methods and the information calculated in RepositoryInformation
. Would you mind giving the latest snapshots a spin? If those look good, I'd back-port the fix back into the maintenance branches.
from spring-data-commons.
@odrotbohm I gave your changes a quick try. The application started as "quickly" as with my hacky solution, and as far as I tested everything worked!
And as expected your implementation is a bit cleaner than mine. ;)
I found that your polishing commit got a typo in interfacse
.
Also I'm curious if it is intended to have the calculateQueryMethods
and calculateHasCustomMethod
methods private final
instead of just private
. And the queryMethods
field is Lazy<>
while the other two are Supplier<>
although all three of them come from Lazy.of()
.
Thanks for the quick fix.
from spring-data-commons.
Great feedback, thanks! We tend to use private final
for methods being invoked from constructors, but it's a cosmetical change. You're right that we can switch the field declaration to a Supplier
as we don't need any Lazy
-specific methods here.
I'll apply those fixes and backport the changes.
from spring-data-commons.
Related Issues (20)
- Switch to Broadcom docker proxy
- Investigate registering the target type of reading converters as simple types
- Kotlin lazy property identified as persistent entity HOT 4
- WarningMixing/WrappingMixing in PageModule overrides user defined Jackson annotations. HOT 2
- ConcurrentModificationException for registerEvent in TransactionalEventListener HOT 4
- @EnableSpringDataWebSupport not working in native image HOT 2
- Conversion of jMolecules `Identifier` implementations to primitive fails with Spring Data JDBC HOT 7
- PageableHandlerMethodArgumentResolverSupport still uses page, size as the default parameter names
- Property path with whitespace inconsistently throws exception HOT 2
- Release 3.2.9 (2023.1.9)
- Release 3.3.3 (2024.0.3)
- Custom Repository returns `Optional` as return type for `T` HOT 1
- Introduce `Parameter.getRequiredName()` method
- Thread Pinning in `Repositories#cacheRepositoryFactory()` HOT 1
- Add support for interface projection using Kotlin "is"-properties HOT 4
- Bundle Javadoc with Antora documentation site
- `IndexOutOfBoundsException` on `KotlinCopyMethod.shouldUsePublicCopyMethod(…)` when saving single-property Kotlin data class with Association HOT 1
- Upgrade to Maven Wrapper 3.9.8
- Upgrade to Maven Wrapper 3.9.8
- Upgrade to Maven Wrapper 3.9.8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from spring-data-commons.