Thanks for the reply.
It doesn't look that nice when the adding method takes a string (a Product would make the association more clear) but I think that would result in code leaking out into the calling action. And if there would be more code in the callee, it should be moved somewhere (a service?), but in both cases logic is moved away from the domain object...
I lost you there. The add method doesn't take an argument but the order is the only one to know the row number of the next row (relevant in ordering the rows).
Yep. Although sometimes the ORMs can be a pain in the neck when you have some contraint on the table that is violated becase the ORM decides to do updates and deletes in certain order etc.
Yep, its on my (slowly advancing) reading list...
Could you elaborate? I usually find it handy just to inject a common root locator so you can have access to any service without rewiring.



Reply With Quote