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?
The @Transient
annotation it is. See http://static.springsource.org/spring-data/data-document/docs/current/reference/html/#mapping-usage-annotations