From 49415efb8ccb4b203026ceadca8fc49df1e57cd7 Mon Sep 17 00:00:00 2001 From: Mark Paluch Date: Mon, 25 Mar 2019 09:59:27 +0100 Subject: [PATCH] DATAMONGO-2223 - Polishing. Replace DBRef annotation using FQCN with import. Original pull request: #660. --- .../data/mongodb/core/MongoTemplateDbRefTests.java | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/spring-data-mongodb/src/test/java/org/springframework/data/mongodb/core/MongoTemplateDbRefTests.java b/spring-data-mongodb/src/test/java/org/springframework/data/mongodb/core/MongoTemplateDbRefTests.java index 8b3620069..908f9080b 100644 --- a/spring-data-mongodb/src/test/java/org/springframework/data/mongodb/core/MongoTemplateDbRefTests.java +++ b/spring-data-mongodb/src/test/java/org/springframework/data/mongodb/core/MongoTemplateDbRefTests.java @@ -199,31 +199,28 @@ public class MongoTemplateDbRefTests { static class WithRefToAnotherDb { @Id String id; - @org.springframework.data.mongodb.core.mapping.DBRef(db = "mongo-template-dbref-tests-other-db") JustSomeType value; + @DBRef(db = "mongo-template-dbref-tests-other-db") JustSomeType value; } @Data static class WithLazyRefToAnotherDb { @Id String id; - @org.springframework.data.mongodb.core.mapping.DBRef(lazy = true, - db = "mongo-template-dbref-tests-other-db") JustSomeType value; + @DBRef(lazy = true, db = "mongo-template-dbref-tests-other-db") JustSomeType value; } @Data static class WithListRefToAnotherDb { @Id String id; - @org.springframework.data.mongodb.core.mapping.DBRef( - db = "mongo-template-dbref-tests-other-db") List value; + @DBRef(db = "mongo-template-dbref-tests-other-db") List value; } @Data static class WithLazyListRefToAnotherDb { @Id String id; - @org.springframework.data.mongodb.core.mapping.DBRef(lazy = true, - db = "mongo-template-dbref-tests-other-db") List value; + @DBRef(lazy = true, db = "mongo-template-dbref-tests-other-db") List value; } @Data