Let's say I have an entity A that is composed of an entity B and an entity C
- Code: Select all
B<----<>A<>---->C
Each of these entities have value objects, let's call them VA, VB and VC. The value object VA is composed of VB and VC
- Code: Select all
VB<----<>VA<>---->VC
Transforming VB and VC is already done, so when I write the transform method for VA, I'd like to reuse the other transforms. They are public methods on the DAO so it should be possible, but how should I access an instance of the other DAO from A's DAO ?
Rereading that, it still sounds a bit confused ... but I hope you can understand what I mean ...
Thanks for your answers !
