I've been using @Transient annotation to mark fields as transient for writing to Mongo using mongoTemplate.
I do have some code I cannot annotate which contains fields that are marked as transient (java keyword). Spring fails to read this and tries to write the transient field to mongo.
Is there a special reason for this behavior? Is there a way to workaround this other than write a custom converter?
I do have some code I cannot annotate which contains fields that are marked as transient (java keyword). Spring fails to read this and tries to write the transient field to mongo.
Is there a special reason for this behavior? Is there a way to workaround this other than write a custom converter?