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

PHPMotion implementation - URL based videos (Hosted on separate location) -

javascript - Using Windows Media Player as video fallback for video tag -

c# - Unity IoC Lifetime per HttpRequest for UserStore -