About performing SQL queries with Hibernate, the character field type only returns the first byte of an issue
Today, I encountered a problem, that is, in hibernate, I use SQL to query the MySQL database inside the user table inside the username field, but found that the data are only the first word, For example: In the user table inside the username field has a data is: "Chen Chiwei", the query returned after the result is the first letter of the data: "C"; So, I looked at the user this table design, found that the type of username this field is ' Char ' type, the query data returns to normal after it is changed to a varchar type.
This problem is not displayed in the command console of the database, I found it in Hibernate's SQL query, and I haven't tried it yet.
About performing SQL queries with Hibernate, the character field type only returns the first byte of an issue