-
Task
-
Resolution: Unresolved
-
Major
-
None
-
None
-
None
-
False
-
False
-
Undefined
-
We have code generation.
Interfaces and concrete POJOs are created from XSD using JAXB Maven plugins.
The interfaces need to extend base interfaces to make the API work correctly.
com.anstis.pmml.model.api.Scorecard should extend com.anstis.pmml.model.api.IModel however the org.jvnet.jaxb2_commons:jaxb2-basics JAXB plugin only sets classes as extending interfaces defined in the XJC binding file.
We can only generate com.anstis.pmml.model.impl.v4_4.Scorecard implements com.anstis.pmml.model.api.IModel. This means where we have com.anstis.pmml.model.api.PMML#models as a collection of com.anstis.pmml.model.api.IModel we cannot add a com.anstis.pmml.model.api.Scorecard to it but must add the concrete com.anstis.pmml.model.impl.v4_4.Scorecard.
The org.jvnet.jaxb2_commons:jaxb2-basics needs fixing to also generate extends for interfaces. However the plugin has moved onto JAXB 3.x and Jakarta JEE libraries meaning we need to move our code generation too.
- blocks
-
FAI-487 Score Cards: Refactor (un)marshaller
- Backlog
- is blocked by
-
KOGITO-5641 Move xml-mapper to JAXB 3.x and Jakarta JEE libraries
- Open