Package io.jmix.aitools.dataload.repair
@NullMarked
package io.jmix.aitools.dataload.repair
-
ClassDescriptionTo be implemented by classes that can repair an invalid JPQL query draft.Input for a single
JpqlRepairerattempt: the original execution request, the current query draft, its validation result and the attempt number.Outcome ofJpqlRepairService.repairIfNeeded(io.jmix.aitools.dataload.execution.JpqlExecutionRequest, io.jmix.aitools.dataload.execution.GeneratedJpqlResult, io.jmix.aitools.dataload.validation.JpqlValidationResult): the resulting query draft, its validation result, the number of repair attempts made and whether a repair was attempted at all.Repairs an invalid query by running the configuredJpqlRepairer, re-validating after each attempt until the query becomes valid or the attempt limit is reached.