Comments (6)
Stevo Slavić commented
Wish SimpleJpaRepository is more designed for extension. To add workaround until this ticket is resolved, had to duplicate/shadow fields and multiple methods. If only getEntityManager and getQuery methods were protected and not private
from spring-data-jpa.
Dustin Woods commented
I too would like to see the getQuery method be 'protected' instead of 'private' to apply query hints when using specifications. Should this be a separate issue?
from spring-data-jpa.
Oliver Drotbohm commented
I've added the method. What are you exactly meaning with the generated test source directory?
from spring-data-jpa.
Stevo Slavić commented
Some test sources are generated (using com.mysema.maven:maven-apt-plugin). Only default test source directory is src/test/java. For directory with generated test sources to be compiled and added to test scope classpath, build helper plugin is typically used. Without that ordinary test sources which reference generated test source do not compile.
Btw, some javadoc in SimpleJpaRepository has to be updated to reflect changes when JpaSpecificationExecutor was factored out of JpaRepository. I would have done that but formatting surely wouldn't be correct. SpringSource eclipse formatter used to exist
from spring-data-jpa.
Oliver Drotbohm commented
Hi Stevo, have you had a chance to check whether this works for you? The Maven build should just work fine anyway as the APT plugin transparently adds the configured target folder as source folder as well. It builds fine for me on the command line and also does in Eclipse (at least after having done Maven > Update Project configuration in m2eclipse).
from spring-data-jpa.
Stevo Slavić commented
It works for me too, updating project configuration does the trick. By default m2eclipse doesn't run any goals on Maven project import
from spring-data-jpa.
Related Issues (20)
- Sometime in custom query, count query does not get triggered automatically HOT 5
- Page's content type isn't correct HOT 6
- Spring Boot 3.2.3 + Native Image Compile broken with JPA/Hibernate HOT 1
- Spring Boot 3.2.x with @Audited annotation is causing Hibernate error at application startup HOT 6
- Can not use Spring's Sort to access generic fields, using both Sort and TypedSort HOT 1
- API with Pagination giving error after spring-boot-starter-jpa version upgrade. HOT 4
- @EnableJpaRepositories(repositoryBaseClass = ...) doesn't support dependency injection HOT 9
- BadJpqlGrammarException with the latest release when using query hints inside the query HOT 5
- Unsupported Repository query return types have no hints or logs or exceptions
- Add CI build against Hibernate 6.2
- Document Query by Example does not support regex matching HOT 1
- Slice leads to an invalid parameter binding value for maxResults HOT 1
- ERROR [procedure name] is not a procedure with Postgres 12 after upgrading from Spring Boot 3.0.3 to >= 3.1.0 HOT 4
- Spring Data JPA projection to records using native queries does not work HOT 6
- potentiallyWrapWithWildcards usage is wrong in StringQuery HOT 1
- Release 3.1.11 (2023.0.11)
- Release 3.2.5 (2023.1.5)
- Release 3.3 RC1 (2024.0.0)
- Cannot use "IgnoreCase" in Spring boot data JPA with SQL server database HOT 3
- I'm curious about why SimpleJpaRepository checks twice whether the entity is in a persistent state when calling the delete method. HOT 14
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-jpa.