|
34 | 34 | import java.lang.reflect.InvocationTargetException;
|
35 | 35 | import java.math.BigDecimal;
|
36 | 36 | import java.math.BigInteger;
|
| 37 | +import java.time.Instant; |
37 | 38 | import java.util.*;
|
38 | 39 | import java.util.stream.Collectors;
|
39 | 40 | import java.util.stream.IntStream;
|
|
85 | 86 | import org.springframework.data.mongodb.core.query.Update;
|
86 | 87 | import org.springframework.data.mongodb.test.util.MongoVersion;
|
87 | 88 | import org.springframework.data.mongodb.test.util.MongoVersionRule;
|
88 |
| -import org.springframework.data.mongodb.util.MongoClientVersion; |
89 | 89 | import org.springframework.data.util.CloseableIterator;
|
90 | 90 | import org.springframework.test.annotation.DirtiesContext;
|
91 | 91 | import org.springframework.test.context.ContextConfiguration;
|
@@ -3658,26 +3658,19 @@ static class DocumentWithDBRefCollection {
|
3658 | 3658 | }
|
3659 | 3659 |
|
3660 | 3660 | @Data
|
| 3661 | + @AllArgsConstructor |
3661 | 3662 | static class DocumentWithLazyDBRefsAndConstructorCreation {
|
3662 | 3663 |
|
3663 |
| - @Id public final String id; |
3664 |
| - |
3665 |
| - public DocumentWithLazyDBRefsAndConstructorCreation(String id, Sample lazyDbRefProperty, |
3666 |
| - List<Sample> lazyDbRefAnnotatedList, Map<String, Sample> lazyDbRefAnnotatedMap) { |
3667 |
| - this.id = id; |
3668 |
| - this.lazyDbRefProperty = lazyDbRefProperty; |
3669 |
| - this.lazyDbRefAnnotatedList = lazyDbRefAnnotatedList; |
3670 |
| - this.lazyDbRefAnnotatedMap = lazyDbRefAnnotatedMap; |
3671 |
| - } |
| 3664 | + @Id public String id; |
3672 | 3665 |
|
3673 | 3666 | @org.springframework.data.mongodb.core.mapping.DBRef(lazy = true) //
|
3674 |
| - public final Sample lazyDbRefProperty; |
| 3667 | + public Sample lazyDbRefProperty; |
3675 | 3668 |
|
3676 | 3669 | @Field("lazy_db_ref_list") @org.springframework.data.mongodb.core.mapping.DBRef(lazy = true) //
|
3677 |
| - public final List<Sample> lazyDbRefAnnotatedList; |
| 3670 | + public List<Sample> lazyDbRefAnnotatedList; |
3678 | 3671 |
|
3679 | 3672 | @Field("lazy_db_ref_map") @org.springframework.data.mongodb.core.mapping.DBRef(
|
3680 |
| - lazy = true) public final Map<String, Sample> lazyDbRefAnnotatedMap; |
| 3673 | + lazy = true) public Map<String, Sample> lazyDbRefAnnotatedMap; |
3681 | 3674 | }
|
3682 | 3675 |
|
3683 | 3676 | @EqualsAndHashCode
|
|
0 commit comments