error
dao.DataIntegrityViolationException: Error attempting to get column 'owner_name' from result set. Cause: java.sql.SQLDataException: Cannot determine value type from string '大老板'
reason:
Database field does not match entity class field type
If union is used in the code, each SQL field in the union must correspond one by one. When the corresponding data type is wrong, the above exception will be reported
Similar Posts:
- java.sql.SQLException: Fail to convert to internal
- C# Unable to translate set operation when matching columns on both sides have different store types
- APP Report DB2 SQL Error: SQLCODE=-302, SQLSTATE=22001, SQLERRMC=null, DRIVER=4.17.29
- Get the time value from the database and report an error: Java sql. Timestamp cannot be cast to java. lang.Long
- [Solved] Postgre Error: ERROR: UNION types numeric and character varying cannot be matched
- The solution to the java.lang.ClassCastException: [B cannot be cast to java.lang.String error in kettle
- [Solved] MySQL ERROR 1054 (42S22): Unknown column ‘i2goods.t_ebook_data.fbookid’ in ‘field list’
- [Solved] Springboot startup error: org.springframework.beans.factory.unsatisfieddependenceexception…
- [Solved] An error occurred while updating the entries. See the inner exception for details.
- [Solved] JAVA:java.lang.ClassNotFoundException: sun.jdbc.odbc.JdbcodbcDrive