How to get the ObjectId value from MongoDB?
- by LVarayut
I'm using Jongo with Play framework 2, java. I added some data into my MongoDB.
{"_id" : ObjectId("538dafffbf6b562617252178"), ... }
However, when I fetched the ObjectId from the database, it gave me like:
de.undercouch.bson4jackson.types.ObjectId@484431ff instead of 538dafffbf6b562617252178. I don't quite understand how can I get the ObjectId…