atlasapi/atlas-persistence — pull request #28 by tfm (2012-05-31 10:53:34+00:00)
Title: Make readHash consistent between database-queried DBObjects and ones constructed from the complex model

We cannot construct a DBObject using Sets, since it causes the read hash to be inconsistent between objects from the database and objects created from our complex model.

This is because hashCode() results, rightly, differ between Sets and Lists, and all collections in DBObjects are lists.