architecture-samples icon indicating copy to clipboard operation
architecture-samples copied to clipboard

Adding functions/behaviours in repository

Open jchesterisidoro opened this issue 10 years ago • 3 comments

I'm confused about the best way to add more functions in repository such as 1.) "checking for model/model property uniqueness", and 2.) "model property validity". I'm not sure if this should be put on the repository or model or presenter.

Any ideas? Thanks.

jchesterisidoro avatar Aug 11 '16 01:08 jchesterisidoro

Is it possible for you to provide samples? e.g., the source code or article that made you ask this question.

gokhanbarisaker avatar Oct 02 '16 19:10 gokhanbarisaker

Closing this one, feel free to reopen.

JoseAlcerreca avatar Nov 16 '16 14:11 JoseAlcerreca

In number 1.) let's say that we need the Task object to be unique. No Task should have a similar title and content. Should I check that in the repository? Or in the Task object itself? Presenter? Domain? As for 2.) what if we need the Task title to have a number of characters required, where should I put that?

jchesterisidoro avatar Dec 27 '16 14:12 jchesterisidoro