Iām trying to avoid persisting some fields in my POJO in to MongoDB.
I tried
1) Adding @javax.persistence.Transient
on field.
2) Adding @org.springframework.data.annotation.Transient
on field
even i do not use spring at all.
3) Make the field transient
I am using Jakson as the default ObjectMapper of mongodb. and i am not using Spring data to interact with database
But no luck.