Hi Hardy,
I thought about this approach last week and I don't find it very satisfying for 2 reasons:
-
we change the meaning of collection role as it's unqualified here and it's qualified in ORM: I don't like this idea even if I don't have a strong argument against it;
-
the regexp approach is too fragile: if you have the collection named collection1, it's going to match MyClass.collection1 MyClass.object.collection1, my.package.name.unfortunately.contains.collection1.MyClass.property and so on.
That's why I started working on my other approach this week-end and I haven't finished the work yet but I think I could put something in shape this evening or tomorrow if you think it's worth giving it a try.
Waiting for your feedback.
– Guillaume
|