You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
An entity-view mapping @Mapping("TREAT(parent AS BaseProduct)") fails to parse with 1.4.0-Alpha2 that previously worked.
Also, the parser does not restore the original whitespaces in an expression when it throws a SyntaxErrorException.
Caused by: com.blazebit.persistence.parser.expression.SyntaxErrorException: A top level treat expression is not allowed. Consider to further dereference the expression: TREAT(parentASBaseProduct)
at com.blazebit.persistence.parser.expression.JPQLNextExpressionVisitorImpl.visitPathExpression(JPQLNextExpressionVisitorImpl.java:599)
at com.blazebit.persistence.parser.expression.JPQLNextExpressionVisitorImpl.visitPathExpression(JPQLNextExpressionVisitorImpl.java:56)
at com.blazebit.persistence.parser.JPQLNextParser$PathExpressionContext.accept(JPQLNextParser.java:6638)
at com.blazebit.persistence.parser.expression.JPQLNextExpressionVisitorImpl.visitParseExpression(JPQLNextExpressionVisitorImpl.java:94)
at com.blazebit.persistence.parser.expression.JPQLNextExpressionVisitorImpl.visitParseExpression(JPQLNextExpressionVisitorImpl.java:56)
at com.blazebit.persistence.parser.JPQLNextParser$ParseExpressionContext.accept(JPQLNextParser.java:408)
at com.blazebit.persistence.parser.antlr.tree.AbstractParseTreeVisitor.visit(AbstractParseTreeVisitor.java:18)
at com.blazebit.persistence.parser.expression.AbstractExpressionFactory.createExpression(AbstractExpressionFactory.java:186)
at com.blazebit.persistence.parser.expression.AbstractExpressionFactory.createSimpleExpression(AbstractExpressionFactory.java:213)
at com.blazebit.persistence.parser.expression.AbstractCachingExpressionFactory$2.get(AbstractCachingExpressionFactory.java:56)
at com.blazebit.persistence.parser.expression.AbstractCachingExpressionFactory.getOrDefault(AbstractCachingExpressionFactory.java:158)
at com.blazebit.persistence.parser.expression.AbstractCachingExpressionFactory.createSimpleExpression(AbstractCachingExpressionFactory.java:109)
at com.blazebit.persistence.view.impl.MacroConfigurationExpressionFactory.createSimpleExpression(MacroConfigurationExpressionFactory.java:67)
at com.blazebit.persistence.parser.expression.AbstractExpressionFactoryMacroAdapter.createSimpleExpression(AbstractExpressionFactoryMacroAdapter.java:66)
at com.blazebit.persistence.view.impl.metamodel.AbstractAttribute.getCollectionJoinMappings(AbstractAttribute.java:395)
at com.blazebit.persistence.view.impl.metamodel.ManagedViewTypeImpl.checkAttributes(ManagedViewTypeImpl.java:391)
at com.blazebit.persistence.view.impl.metamodel.ViewMetamodelImpl.<init>(ViewMetamodelImpl.java:103)
at com.blazebit.persistence.view.impl.EntityViewManagerImpl.<init>(EntityViewManagerImpl.java:166)
The text was updated successfully, but these errors were encountered:
An entity-view mapping
@Mapping("TREAT(parent AS BaseProduct)")
fails to parse with 1.4.0-Alpha2 that previously worked.Also, the parser does not restore the original whitespaces in an expression when it throws a SyntaxErrorException.
The text was updated successfully, but these errors were encountered: