When storing long value in mongodb from java program the value is stored in this format NumberLong(n)

Viewed 3924

When storing long value from java program in mongodb the value is stored in this format

`NumberLong(n)`.

 db.mycollection.find()

    { "_id" : ObjectId("52bd9475c8ceae448b16c077"), "companyId" : NumberLong(10132), "tableId" : NumberLong(87803), "rowId" : NumberLong(88154), "classNameId" : NumberLong(10129), "classPK" : NumberLong(88153) }

but i want to store the values as 10132, 87803 etc.

1 Answers
Related