You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
DATAMONGO-972 - Querydsl integration now handles references correctly.
SpringDataMongodbSerializer now overrides the necessary methods to create the appropriate DBRef objects when serializing data via Querydsl.
We currently disable the test case as it the fix taking effect requires Querydsl 3.4.1 which unfortunately breaks Java 6 compatibility. We include the fix nonetheless to allow users on Java 7 to potentially use the latest Querydsl.
Original pull request: #203.
Related tickets: querydsl/querydsl#803.
Copy file name to clipboardExpand all lines: spring-data-mongodb/src/main/java/org/springframework/data/mongodb/repository/support/SpringDataMongodbSerializer.java
+59-2Lines changed: 59 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,5 @@
1
1
/*
2
-
* Copyright 2011-2012 the original author or authors.
2
+
* Copyright 2011-2014 the original author or authors.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
@@ -25,7 +25,10 @@
25
25
importorg.springframework.util.Assert;
26
26
27
27
importcom.mongodb.DBObject;
28
+
importcom.mongodb.DBRef;
28
29
importcom.mysema.query.mongodb.MongodbSerializer;
30
+
importcom.mysema.query.types.Constant;
31
+
importcom.mysema.query.types.Operation;
29
32
importcom.mysema.query.types.Path;
30
33
importcom.mysema.query.types.PathMetadata;
31
34
importcom.mysema.query.types.PathType;
@@ -34,6 +37,7 @@
34
37
* Custom {@link MongodbSerializer} to take mapping information into account when building keys for constraints.
Copy file name to clipboardExpand all lines: spring-data-mongodb/src/test/java/org/springframework/data/mongodb/repository/AbstractPersonRepositoryIntegrationTests.java
0 commit comments