for some reason I have not being able to find a suitable answer for this. I have the following simple entity:
@Entity
@Table(name = \"simple_entity\")
@Acce
Had the same problem, specifically it works in H2 but not in MySQL.
In addition I got PRIMARY key constraint failures attempting to update the record because Hibernate (under JPA) was querying to see if the record exists and it did not find it.
Using @Column(length=16) also solves this problem neatly, assuming MySQL is using a BINARY column... otherwise the matching will fail due to the column having extra data in the DB (I think it defaults to BINARY[32]).