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

Popular posts from this blog

java - Date formats difference between yyyy-MM-dd'T'HH:mm:ss and yyyy-MM-dd'T'HH:mm:ssXXX -

c# - Get rid of xmlns attribute when adding node to existing xml -