Hello,
why does the JDBC connector map TINYINT and SMALLINT to Integer instead of java.lang.Byte and java.lang.Short as you'd expect?
This can cause problems because code generators will pick up the MySQL type from the schema and create Byte and Short types, but the JDBC connector will provide an Integer, which can't be assigned to Byte or Short without a downcast.
What's up with that?
Karsten
why does the JDBC connector map TINYINT and SMALLINT to Integer instead of java.lang.Byte and java.lang.Short as you'd expect?
This can cause problems because code generators will pick up the MySQL type from the schema and create Byte and Short types, but the JDBC connector will provide an Integer, which can't be assigned to Byte or Short without a downcast.
What's up with that?
Karsten