Class UsedPropertyPathsValidator
java.lang.Object
io.jmix.aitools.dataload.validation.validator.UsedPropertyPathsValidator
- All Implemented Interfaces:
JpqlResultValidator,org.springframework.core.Ordered
@Component("aitls_UsedPropertyPathsValidator")
public class UsedPropertyPathsValidator
extends Object
implements JpqlResultValidator, org.springframework.core.Ordered
Checks that every property path referenced by the query resolves against the introspected
domain model.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected JpaDomainModelIntrospectorstatic final Stringstatic final Stringprotected QueryTransformerFactoryFields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintgetOrder()validate(GeneratedJpqlResult result) Validates the given query draft.
-
Field Details
-
PROPERTY_PATH_INVALID_CODE
- See Also:
-
PROPERTY_PATH_INVALID_GUIDANCE
- See Also:
-
modelIntrospector
-
queryTransformerFactory
-
-
Constructor Details
-
UsedPropertyPathsValidator
public UsedPropertyPathsValidator()
-
-
Method Details
-
validate
Description copied from interface:JpqlResultValidatorValidates the given query draft.- Specified by:
validatein interfaceJpqlResultValidator- Parameters:
result- generated query draft to validate- Returns:
- issues found, or an empty list if the rule passed
-
getOrder
public int getOrder()- Specified by:
getOrderin interfaceorg.springframework.core.Ordered
-