While transforming entities, we get "java.lang.IllegalArgumentException: argument type mismatch" exception caused by AliasToBeanConstructorResultTransformer, because the returned fields' type are string while constructor requires Long or Boolean.