PMXBOT Log file Viewer

Help | Karma | Search:

#mongodb logs for Tuesday the 24th of March, 2020

(Back to #mongodb overview) (Back to channel listing) (Animate logs)
[22:09:59] <Zta77> In Java, I've made an abstract GenericDocument class that basically only holds the protected ObjectId id and an Instant date; I then extend this, insert, and find. After insert I can see in the mongodb that id and date were populated, but when I find the document back again, both the id and date are null. What's going on?
[22:11:09] <Zta77> I'm using pojocodec
[22:22:07] <Zta77> A working example of this would be nice; https://mongodb.github.io/mongo-java-driver/3.12/bson/pojos/#generics-support
[22:29:42] <Zta77> I don't use generics, really; I'm just extending a class.
[22:56:37] <Zta77> Hm, I think I've fixed it.