Closed snusnu closed 10 years ago
I think that associating mappers with relations can be based on the same info the NaturalJoin
field naming strategy needs to exclude foreign keys from renaming (#9)
It ended up to be a lot simpler than the ideas outlined above. With the issue closing commit, ramom
simply makes use of an option that is not recognized by mom
. One just needs to think of unrecognized options as metadata.
This can be used to associate entity definitions with relations they're supposed to map. Since the entity mapper is completely independent from a RA context, this should be implemented via a generic extension mechanism.