greenlaw110/play-morphia — pull request #57 by anttip (2011-12-13 23:04:41+00:00)
Title: multitenant support

I saw that you were considering implementing multitenant support to play-morphia. I would really like to see this happen, so here's one take on implementing multitenant support to play-morphia.

This implementation allows modifying the collection name for each tenant. I couldn't find clear documentation on how to modify Morphia's collection names dynamically, but overriding DatastoreImpl.getCollection seemed to work against the current test suite and also in my own testing.