33import com .fasterxml .jackson .annotation .JsonProperty ;
44import org .bson .types .ObjectId ;
55import org .jongo .marshall .jackson .oid .Id ;
6- import org .jongo .marshall .jackson .oid .MongoId ;
7- import org .jongo .marshall .jackson .oid .MongoObjectId ;
86import restx .annotations .POST ;
97import restx .annotations .RestxResource ;
108import restx .factory .Component ;
1715public class MongoResource {
1816 public static class ObjectWithIdAnnotation {
1917 // @Id // 0.34 -> OK ; 0.35 -> KO!
20- @ MongoId @ JsonProperty ("_id" ) // 0.35 -> KO!
18+ @ Id @ JsonProperty ("_id" ) // 0.35 -> KO!
2119 private String id ;
2220 private String label ;
2321
@@ -28,7 +26,7 @@ public static class ObjectWithIdAnnotation {
2826 }
2927 public static class ObjectWithObjectIdAnnotation {
3028 // @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!
3230 private String id ;
3331 private String label ;
3432
@@ -39,7 +37,7 @@ public static class ObjectWithObjectIdAnnotation {
3937 }
4038 public static class ObjectWithObjectIdType {
4139 // @Id // 0.34 -> OK ; 0.35 -> OK
42- @ MongoId @ JsonProperty ("_id" ) // 0.35 -> OK
40+ @ Id @ JsonProperty ("_id" ) // 0.35 -> OK
4341 private ObjectId id ;
4442 private String label ;
4543
0 commit comments