I'm thinking something like:
ds.QBE(exampleUser).get/asList()
Is QBE a good method name, or maybe "queryByExample"?
When the code is done :)
I will put up a snapshot today.
This is not the best code because it assumes that you specify the
collection name in the @Entity annotation; It is also very low-level.
You can use the Query(Impl) class to do most of this stuff which makes
it much cleaner.
http://code.google.com/p/morphia/source/browse/trunk/morphia/src/main/java/com/google/code/morphia/DatastoreImpl.java