0

I had created a Kogito application with quarkus and it was working well with all data types and complex POJO classes. After I introduced MongoDB persistence into the picture, the Object types are causing the application build to fail. I have in my POJO's certain Object type properties. Checking the documentation i was able to discover that since java.lang.Object is not serializable, we cannot use it. I have certain logic dependent on Objects, so is there any workaround i can do to overcome this?

wohlstad
  • 12,661
  • 10
  • 26
  • 39
codeforHarman
  • 115
  • 1
  • 10
  • 1
    Unfortunately, there is no workaround for this at this point. Kogito persistence needs a concrete type, or at least a Serializable type, in order to persist data to DB. If changing the data model is not possible, perhaps open a JIRA explaining your use case so that the team can investigate an alternative. – Cristiano Nicolai Mar 11 '23 at 10:20

0 Answers0