java - spring-data-mongodb dose not map integer values properly -
spring-data-mongodb 1.7.2.release auto save integer double mongodb. document object mapping ok. when read documents java.util.map, integer values turned double values :( possible make spring-data-mongodb save integer integer(x) not double in mongodb. bug?
something this:
@document public class foo { private integer count; ... } foorepository.save(fooinstance);
in mongodb document, field 'count' saved double not numberint(x)
if using class representation, can specify how going used. so, in case if use jackson mapping document in mongo db , in class use values int value; mapped that.
Comments
Post a Comment