Sample source code to accompany "Single-Collection Designs with Spring Data" article
This sample project uses Spring Data to write and retrieve multiple POJO object types to a single collection within MongoDB.
This design pattern can be useful to avoid joins across collections and / or extensive embedding of documents within a single collection.