Closed spring-projects-issues closed 8 years ago
Terje Strand commented
Please close bug as 'invalid'. It does not look like I am allowed to...
I have done more debugging and I think I found the real root cause. So, rather than correcting this bug I created a new with a more accurate problem description. Please see DATACMNS-854 and the supplied patch.
Thanks!
Oliver Drotbohm commented
It's generally a bad idea to keep multiple repositories for the same domain type instance around as it will inevitably create ambiguities in the case Spring Data has to look up a repository for a particular managed domain type. Spring Data REST makes use of that very often
Oliver Drotbohm commented
Resoling as per OP's request
Terje Strand commented
Agreed. I think It also breaks the DDD Repository pattern
Terje Strand opened DATACMNS-852 and commented
Background:
Idea behind attempted workaround:
Code: The 'normal' repository:
The REST exposed repository:
The implementation:
Problem 1:
Problem 2:
Affects: 1.11.4 (Gosling SR4)