I have a collections and I dont need to store tha value of one of the fields anymore.
In this case I just annotated the field with @Transient
But for another field I want to make configurable if it is store or not, according to a configuration parameter. For this case I didnt find an example, any ideas about how I could do it?
I am looking for something like @Transient("${myProperty}")
And if myProperty is true, @Transient will be active and the field will not be stored, and it will be stored if myProperty is false.
Is there something like that??
Hi Bianca. It looks like this question is more about Spring Data MongoDB than about MongoDB itself. You might want to post the question on Stack overflow with the tag spring-data-mongodb.
댓글 없음:
댓글 쓰기