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

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

What can cause "Required Package 'IndyCore' not found" when compiling a Delphi 2010 project? -