Type: New Feature
Affects Version/s: 1.0.4 (Lovelace SR4)
Fix Version/s: 1.1 M3 (Moore)
Java type byte is not being stored properly in the database. I'm using MySQL on the default driver. Here is the entity:
I save a user with the byte array value 0xFFFFFFFFFFFFFFFF.
The actual value saved in the database is the following.
The database type is BINARY(8). I believe (but am not sure) that Spring Data JDBC thinks that the column type in the database is INT.
The interesting thing is that a converter from an object to a byte array works fine. Here is a working example:
I think that byte arrays should automatically be stored correctly in the database. If not, it would be helpful to know how to use a converter to correct the problem.