VisitasUpdate.update (new BasicDBObject ("_ id" , " 549d424be4b0a16103ec046f " ) ,
new BasicDBObject ( " $ set " new BasicDBObject ( "Time Check ", " 19:46:59 "))) ;
Have you tried the ObjectId constructor that takes a String parameter?
I'm using this code and works ok:
ObjectId Id = new ObjectId(" 549d424be4b0a16103ec046f");
VisitasUpdate.update(new BasicDBObject("_id", Id),
new BasicDBObject("$set", new BasicDBObject("Hora Consulta", "21:46:59")));
댓글 없음:
댓글 쓰기