Comments (3)
Got it to work :/
If you want to have reusable JPARepository implementations in separate modules, you have to always specify @EnableJpaRepositories(repositoryFactoryBeanClass = GenericRepositoryFactoryBean.class)
again and again although the SpringBootApp already comes with this repositoryFactoryBeanClass configured...
from devon4j.
Sorry, I did not see this earlier. Seems you figured it out yourself. That is nice. However, I do not get where you had to specify the @EnableJpaRepositories
again and again in your code?
I only have one SpringBootApp per application even it is modularized. Are you talking about JUnit configs? Arent you following devonfw and using the SpringBootApp
itself as config for component and subsystem tests? Maybe we can derive some learning or a documentation hint from this problem.
from devon4j.
The stacktrace from spring-data and esp. the root cause error message is kind of confusing, but if you read it carefully you get that the repository does not implement newDslAlias. That is what only happens if GenericRepositoryFactoryBean is used to create the repository.
In case you want to modularize and have repositories in different maven modules that you also want to test within their defining module, I would create an abstract configuration / spring app that defines the basic configuration setup like the jpa repo config and derive both your test configs as well as your real SpringBootApp
from it.
from devon4j.
Related Issues (20)
- Sample application should submit the status of ships via kafka HOT 1
- Devon4j release test HOT 2
- SQL errors in batch module HOT 3
- MTS - Quarkus - bookingmanagement HOT 1
- JWT support in Quarkus
- Consider removing mmm dependencies
- Validate devon4j modules with latest features. HOT 1
- Analysis devon4j kafka HOT 3
- Validate devon4j web module HOT 3
- Validate devon4j rest module HOT 1
- Validate devon4j logging module HOT 3
- Cobigen generates ToTest which is not supporting SortedSet
- Simplify app-template
- Update devon4j DAO list example in wiki
- Failed to create bean with name 'configurationPropertiesBeans'
- QueryHelper: Dynamic operator support for Comparable types
- Release with latest micro versions (spring-boot 2.6.14) HOT 1
- Release with latest minor versions (spring-boot 2.7.6 and cxf to 3.5.4) HOT 1
- Release with latest major versions (spring-boot 3.0.0)
- Conisder new CVE updates (cxf, jackson, snakeyaml, etc.) HOT 1
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 devon4j.