Niclas Hedhman wrote:
> Isn't then the Query somewhat in opposition with Aggregates hiding its
> internal structures? I mean, if you don't know the "bits" how can you
> create the query for searching for them? Would then that suggest that
> 'aggregate external' queries are not allowed? I.e. I can only search
> the "bits" if the Query is created within the Aggregate... My initial
> feeling about that is "Gooooood" as it encapsulates internal
> structures and a clean separation of what really is public can be
> achieved.

Yeah, that makes sense. Methods to get queries for internal pieces 
should be on the root entity, which makes it safe to refactor the 
internals and know how things are being queried for.

/Rickard

_______________________________________________
qi4j-dev mailing list
[email protected]
http://lists.ops4j.org/mailman/listinfo/qi4j-dev

Reply via email to