[quote="gavin]If you want non-transparent-persistence, you can incredibly easily use queries instead of collections. Indeed, it is never necessary to use collections anywhere in the domain model. They are always "sugar".[/quote]
Gavin, do you mean that 1:N and N:M relations are "sugar" for the domain model in a non-transparent-persistence-scenario?? Does this apply also for 1:1 references in your opinion? Of course I would agree that it is possible to query for all referenced objects, but isn't this a little bit extreme?
Best regards,
Deyan
|