MongoDB by default uses a 12-byte BSON type with a [special structure|http://docs.mongodb.org/manual/reference/object-id/] as document ids:
{code} { "_id" : ObjectId("537cc8f50fe960c16c350237"), "name" : "foo" } {code}
This id is assigned during insert by the driver and comprises parts for timestamp, machine etc. We should support this as a) it is the "natural" way to represent ids in MongoDB and b) in order to facilitate integration with other applications relying on document ids being object ids.
It should be possible to represent such id in entities as {{String}}, {{ObjectId}} and probably - {{Long}} - {{BigInteger}} .
|