Quantcast
Channel: Spring Community Forums - Data
Viewing all articles
Browse latest Browse all 297

Spring mongo and java transient keyword

$
0
0
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?

Viewing all articles
Browse latest Browse all 297

Trending Articles