Upgrade to 6.3 RC1 - Cannot compare left expression of type 'java.sql.Timestamp' with right expression of type 'com.model.entity.impl.User'

The bug is in your code

Subquery subquery = query.subquery(User.class);

should be

Subquery subquery = query.subquery(Date.class);
1 Like