Mongo - Ignore property from being persisted

Saket picture Saket · Nov 24, 2011 · Viewed 37.8k times · Source

I have a standard POJO that has a set of properties in it. The POJO has been annotated as a @Document, so as to be persisted in MongoDB as a Document.

How (annotation??) can I ignore/avoid one of the properties in the POJO from being persisted?