I just tried a quick test and when I store a long datatype then it's
stored as NumberLong()
Code:
long l=1;
collection.insert(new BasicDBObject().append("number", l));
Result:
{ "_id" : ObjectId("5322f4ad300483566f0445c3"), "number" : NumberLong(1) }
Can you show the code you are using so we can see what's different?
Asya
> --
> --
> You received this message because you are subscribed to the Google
> Groups "mongodb-user" group.
> To post to this group, send email to
mongod...@googlegroups.com
> To unsubscribe from this group, send email to
>
mongodb-user...@googlegroups.com
> See also the IRC channel --
freenode.net#mongodb
>
> ---
> You received this message because you are subscribed to the Google Groups
> "mongodb-user" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to
mongodb-user...@googlegroups.com.
> For more options, visit
https://groups.google.com/d/optout.