PaloT wrote:
> 
> Hello,
> we have small problem with DDD design. We have for example entity
> which hold list of aggregated/calculated informations. This values ARE
> NOT stored directly in DB. What is right solution?
> - Make getter in Entity but you need than repository in entity
> 

That is not supported right now, but I have done things like that and know
that it is possible to do that, but I think it requires AspectJ weaving (not
only simple spring aop). 
We have this old jira: http://fornax.itemis.de/jira/browse/CSC-76

Conceptually I think it is perfectly alright to use Repositories from Domain
Objects.


PaloT wrote:
> 
> - Fill each list in repository
> 
This is a simple solution, if it is alright to always eagerly populate the
lists and that you always load the entities from the Repository, and they
are not loaded via associations from other Domain Objects.

PaloT wrote:
> 
> - Fill each list in service
> 
Better to do it in Repository, if possible.

PaloT wrote:
> 
> - ...
> 
> Thanks
> 
> Pavel
> 
> ------------------------------------------------------------------------------
> This SF.net email is sponsored by 
> 
> Make an app they can't live without
> Enter the BlackBerry Developer Challenge
> http://p.sf.net/sfu/RIM-dev2dev 
> _______________________________________________
> Fornax-developer mailing list
> Fornax-developer@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/fornax-developer
> 
> 

-- 
View this message in context: 
http://old.nabble.com/Conceptual-question-tp29469812s17564p29471026.html
Sent from the Fornax-Platform mailing list archive at Nabble.com.


------------------------------------------------------------------------------
This SF.net email is sponsored by 

Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev 
_______________________________________________
Fornax-developer mailing list
Fornax-developer@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fornax-developer

Reply via email to