Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
ClassCastException in EnumByNameType When Setting To Null #309
SQLUpdate update =...;
Caused by: java.lang.ClassCastException: com.mysema.query.sql.types.Null cannot be cast to java.lang.Enum
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.