File tree Expand file tree Collapse file tree 4 files changed +6
-8
lines changed
restx-samplest/src/main/java/samplest/jongo Expand file tree Collapse file tree 4 files changed +6
-8
lines changed Original file line number Diff line number Diff line change 85
85
<!-- Mongo modules -->
86
86
<mongo-java-driver .version>2.11.3</mongo-java-driver .version>
87
87
<bson4jackson .version>2.3.1</bson4jackson .version>
88
- <jongo .version>1.3. 0</jongo .version>
88
+ <jongo .version>1.0</jongo .version>
89
89
<de .flapdoodle.embed.version>1.42</de .flapdoodle.embed.version>
90
90
91
91
<!-- Test libs -->
Original file line number Diff line number Diff line change 24
24
<dependency org =" com.fasterxml.jackson.datatype" name =" jackson-datatype-joda" rev =" 2.8.10" conf =" default" />
25
25
<dependency org =" de.undercouch" name =" bson4jackson" rev =" 2.3.1" conf =" default" />
26
26
<dependency org =" org.mongodb" name =" mongo-java-driver" rev =" 2.11.3" conf =" default" />
27
- <dependency org =" org.jongo" name =" jongo" rev =" 1.3. 0" conf =" default" />
27
+ <dependency org =" org.jongo" name =" jongo" rev =" 1.0" conf =" default" />
28
28
<dependency org =" org.slf4j" name =" slf4j-api" rev =" 1.7.5" conf =" default" />
29
29
<dependency org =" junit" name =" junit" rev =" 4.11" conf =" test->default" />
30
30
<dependency org =" org.assertj" name =" assertj-core" rev =" 1.6.0" conf =" test->default" />
Original file line number Diff line number Diff line change 3
3
import com .fasterxml .jackson .annotation .JsonProperty ;
4
4
import org .bson .types .ObjectId ;
5
5
import org .jongo .marshall .jackson .oid .Id ;
6
- import org .jongo .marshall .jackson .oid .MongoId ;
7
- import org .jongo .marshall .jackson .oid .MongoObjectId ;
8
6
import restx .annotations .POST ;
9
7
import restx .annotations .RestxResource ;
10
8
import restx .factory .Component ;
17
15
public class MongoResource {
18
16
public static class ObjectWithIdAnnotation {
19
17
// @Id // 0.34 -> OK ; 0.35 -> KO!
20
- @ MongoId @ JsonProperty ("_id" ) // 0.35 -> KO!
18
+ @ Id @ JsonProperty ("_id" ) // 0.35 -> KO!
21
19
private String id ;
22
20
private String label ;
23
21
@@ -28,7 +26,7 @@ public static class ObjectWithIdAnnotation {
28
26
}
29
27
public static class ObjectWithObjectIdAnnotation {
30
28
// @org.jongo.marshall.jackson.oid.ObjectId @Id // 0.34 -> OK ; 0.35 -> KO!
31
- @ MongoId @ MongoObjectId @ JsonProperty ("_id" ) // 0.35 -> KO!
29
+ @ Id @ org . jongo . marshall . jackson . oid . ObjectId @ JsonProperty ("_id" ) // 0.35 -> KO!
32
30
private String id ;
33
31
private String label ;
34
32
@@ -39,7 +37,7 @@ public static class ObjectWithObjectIdAnnotation {
39
37
}
40
38
public static class ObjectWithObjectIdType {
41
39
// @Id // 0.34 -> OK ; 0.35 -> OK
42
- @ MongoId @ JsonProperty ("_id" ) // 0.35 -> OK
40
+ @ Id @ JsonProperty ("_id" ) // 0.35 -> OK
43
41
private ObjectId id ;
44
42
private String label ;
45
43
Original file line number Diff line number Diff line change 29
29
30
30
"mongo-java-driver.version" : " 2.11.3" ,
31
31
"bson4jackson.version" : " 2.3.1" ,
32
- "jongo.version" : " 1.3. 0" ,
32
+ "jongo.version" : " 1.0" ,
33
33
34
34
"servlet-api.version" : " 2.5" ,
35
35
You can’t perform that action at this time.
0 commit comments