snusnu / ramom

relational algebra meets object mapping
MIT License
6 stars 0 forks source link

Support registering metadata with entity definitions #11

Closed snusnu closed 10 years ago

snusnu commented 10 years ago

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.

snusnu commented 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)

snusnu commented 10 years ago

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.