blaze-persistence
blaze-persistence copied to clipboard
Validate subview mapping expressions
Subview mapping expressions only allow path / treat expressions. We should validate the expression and throw an expressive exception.
The implementation should be pretty simple, just run the PathTargetResolvingExpressionVisitor on the expression and throw an error if the target type is not a subtype of the subviews entity type.