rafanoronha.speaking()

software development stuff

(Inglês) And speaking about repositories…

with 2 comments

Este texto está disponível apenas em Inglês.


Help me to spread the word!
  • Digg
  • del.icio.us
  • RSS
  • DotNetKicks
  • Technorati
  • Twitter
  • FriendFeed

Related posts:

  1. (Inglês) isValid() doesn’t belong to the Domain

Written by rafanoronha

March 11th, 2010 at 12:15 am

2 Responses to '(Inglês) And speaking about repositories…'

Subscribe to comments with RSS or TrackBack to '(Inglês) And speaking about repositories…'.

  1. Yes, I agree with you, but still, although I don’t name my entities ProductEntity, I name my repositories ProductRepository, just for the sake of keeping things clear. When you look at Product, everyone gets it’s about an entity, while if all classes related to products had the same name, it would be impossible to distinguish them.
    I don’t think adding sufixes would matter much about the uniquitous language.

    Fabio

    11 Mar 10 at 19:37

  2. Fabio,

    Thanks for bringing your viewpoint.

    I’m not telling you should call the repository by Product, just like the entity one.
    My advice is to give meaningful names to any piece of the domain, regardless of a technical pattern.

    So depending on your domain model you could have something like Products, or maybe CatalogProducts.

    rafanoronha

    11 Mar 10 at 21:41

Leave a Reply