citerus / dddsample-core

This is the new home of the original DDD Sample app (previously hosted at sf.net)..
MIT License
4.97k stars 1.47k forks source link

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

Open bkxpao opened 5 years ago

hyhypepe commented 5 years ago

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