The Author Online Book Forums are Moving

The Author Online Book Forums will soon redirect to Manning's liveBook and liveVideo. All book forum content will migrate to liveBook's discussion forum and all video forum content will migrate to liveVideo. Log in to liveBook or liveVideo with your Manning credentials to join the discussion!

Thank you for your engagement in the AoF over the years! We look forward to offering you a more enhanced forum experience.

dakbari (34) [Avatar] Offline
#1
Hi Chris,

first of all many thanks for this wonderful book smilie

My first question is whether one can see the Repository classes like PendingOrderRepository as placeholder for DAO classes like say PendingOrderDAO?

Regards from Germany,
Darya
ceracm (113) [Avatar] Offline
#2
Re: Repository placeholder for DAO?
Darya,

I am glad that you like the book.

I am not sure what you mean by "placeholder" in this context.

In some ways the terms DAO and Repository are interchangeable: i.e. an interface + implementation class that accesses the database. However, the term repository is taken from Domain Driven Design and could be considered to have a slightly different meaning (or set of methods) within a domain model. Moreover, some folks in the Domain Driven Design community would argue that the repository class should invoke DAOs.

I hope this helps.

Chris
dakbari (34) [Avatar] Offline
#3
Re: Repository placeholder for DAO?
I can live with the explanation smilie

Thanks a lot.
Darya

Message was edited by:
dakbari