Closed larsw closed 10 months ago
Hard to tell what's going wrong without seeing more details, especially about the aggregates. Do you have a reproducer to share? The output of the build processing the types would be interesting as well. The ordering issue is kind of explainable as Spring will process the repositories in some order and whichever repository it sees first might cause the abortion of the bootstrap. I guess none of your classes actually get processed. But it's hard to tell why.
Closing this due to the lack of feedback for quite some time. Feel free to reopen with more information.
Hi,
I'm playing with
jmolecules-ddd
and the integrations for Spring and JPA.If I declare a single aggregate root (deriving from
AggregateRoot<T,TId>
) and a corresponding repository implementing theCrudRepository<T,TId>
everything works as expected, but when I create another aggregate root, and a repository for it, it fails when I try to do actx.getBean(RepoType::class.java)
What's even weirder, is that if I change the order of the two repositories in the code (just a small PoC done in a single Kotlin file), it will fail on the other repository instead.