azizairo
azizairo
Hi, are there any updates on this?
Ok, I will try to work on PR
As I understood from method treat, method does not give us possibility to treat parent classes as their subtypes ```java public static Expression treat(Class result, Expression expression) { if (Boolean.class.equals(result)...
JPQLNextExpressions.treat() method returns Expression type and it can not be cast to QLesson classes. ```java public static Expression treat(Class result, Expression expression) {...} ```
I found the correct treat method that can cast parents to the specified subtype. Thank a lot! P.S.: The correct method was in JPAExpressions.class