citerus/dddsample-core

Why is xxxRepository class in model package, I think xxxRepository should be a separate package, can you explain your understanding plz? :)

bkxpao opened this issue · 1 comments

Why is xxxRepository class in model package, I think xxxRepository should be a separate package, can you explain your understanding plz? :)

xxxRepository class (interface class) should be in domain layer, not infrastructure layer. The class implements xxxRepository will be in infrastructure layer.

You should read carefully DDD book again. Hope that will help you