当我把id字段升级为 uuid时 查询 报错
未升级之前是正常的

报错信息如下
Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed;
nested exception is org.springframework.dao.DataIntegrityViolationException: Error attempting to get column 'id' from result set.
Cause: java.sql.SQLDataException: Cannot determine value type from string '4872a00615cd9a78ff39f87cd9141f17';
Cannot determine value type from string '4872a00615cd9a78ff39f87cd9141f17';
nested exception is java.sql.SQLDataException: Cannot determine value type from string '4872a00615cd9a78ff39f87cd9141f17'] with root cause
com.mysql.cj.exceptions.DataConversionException: Cannot determine value type from string '4872a00615cd9a78ff39f87cd9141f17'

xml结果映射

评论说实体类id类型没改 补图:

这里统一回复一下,实体类都是没问题的,有构造,使用了lombok插件