mongodb - Array of BigIntegers is saved as string in Spring + Mongo -
when try save object has array of biginteger, discovered spring data mongo saves values strings instead of objectids.
the object stored in mongo array of objectids, when saving gets converted strings.
i assumed problem fact array or list, , not biginteger directly. ideas?
i found solution on own. appears biginteger[] should changed objectid[] without @onetomany annotation on it.
the @onetomany annotation caused forced conversion string.
a better solution use custom annotation @objectid, in same spirit @dbref, not included in spring data mongo, , don't have skill yet set up.
if feels interested out, i'd more happy , select different best answer.
Comments
Post a Comment