Add collection variable to @Encrypted SpEL context.
Supply the collection name as a #collection variable in the SpEL
evaluation context for @Encrypted keyId expressions. This allows
using different encryption keys per collection.
The #collection variable is now available in both entity-level and
property-level @Encrypted annotations.
Closes#4304
Signed-off-by: seonghyeoklee <dltjdgur327@gmail.com>
@ -382,6 +382,7 @@ public class BasicMongoPersistentEntity<T> extends BasicPersistentEntity<T, Mong
@@ -382,6 +382,7 @@ public class BasicMongoPersistentEntity<T> extends BasicPersistentEntity<T, Mong
@ -270,6 +270,9 @@ public class BasicMongoPersistentProperty extends AnnotationBasedPersistentPrope
@@ -270,6 +270,9 @@ public class BasicMongoPersistentProperty extends AnnotationBasedPersistentPrope