Hey,
I've encountered an issue using panache. I have a lib (commons.jar) which contains a class names Workflow. This class has an attribute called 'steps' which a list of step.
@MongoEntity(collection = "Workflow")
@RegisterForReflection
@JsonInclude(JsonInclude.Include.NON_NULL)
public class Workflow {
public List<Step> steps = new LinkedList<>();
}
// No annotations here but I tried with @RegisterForReflection also
public class Step {
public int durationDays;
public String name;
public ObjectId id = new ObjectId();
public Step() {}
}
This lib is used in another quarkus project.
But as soon as I wan't to read/write a Workflow I have this error :
org.bson.codecs.configuration.CodecConfigurationException: Can't find a codec for class com.clozzle.commons.model.workflows.Step.
...
I know I could just use a stepId and have a separate collection, but I wan't to understand the issue here.
Thanks for you help :)