mongodb - Exclude null properties from save operation -


i'm using spring data mongodb -1.4.1.release , mongodb 2.4.9

i'm using mongooperations.save() in order update entities.

on previouse version, 1.2.0.release (due bug: datamongo-571 ) used exclude of properties setting value null.

now, bug fixed, , i'm not able so, still need exclude properties save operation (in case of update).

does have idea how can achieved?

mongotemplate has dedicated methods perform partial updates like:

  • updatefirst(…) - updates first document matching given criteria.
  • updatemulti(…) - updates documents matching given criteria.

Comments

Popular posts from this blog

c# - Unity IoC Lifetime per HttpRequest for UserStore -

Change the color of an oval at click in Java AWT -

I am trying to solve the error message 'incompatible ranks 0 and 1 in assignment' in a fortran 95 program. -