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
Caused by: java.lang.ClassCastException: com.mysema.query.sql.types.Null cannot be cast to java.lang.Enum
at com.mysema.query.sql.types.EnumByNameType.setValue(EnumByNameType.java:26) ~[querydsl-sql-2.9.0.jar:na]
at com.mysema.query.sql.Configuration.set(Configuration.java:111) ~[querydsl-sql-2.9.0.jar:na]
The text was updated successfully, but these errors were encountered:
The problem is that Configuration.getType > JavaTypeMapping.getType > typeByColumn returns EnumByValueType instead of UntypedNullType (or NullType - what's the difference?) which is returned in case of e.g. StringPath. Null expression should override typed access.
SQLUpdate update =...;
update.set(qType.enumValue, null);
=>
Caused by: java.lang.ClassCastException: com.mysema.query.sql.types.Null cannot be cast to java.lang.Enum
at com.mysema.query.sql.types.EnumByNameType.setValue(EnumByNameType.java:26) ~[querydsl-sql-2.9.0.jar:na]
at com.mysema.query.sql.Configuration.set(Configuration.java:111) ~[querydsl-sql-2.9.0.jar:na]
The text was updated successfully, but these errors were encountered: