I’m not sure I’m following, sorry. Java int: -2,147,483,648 to 2,147,483,647 MySQL tinyint (no exception thrown): -128 to 128 MySQL tinyint unsigned (exception thrown): 0 to 255 The problem is that @Column(name = "level", columnDefinition = "tinyint")` is ok, but for some reason @Column(name = "level", columnDefinition = "tinyint unsigned")` is not, although it’s closer to the actual database table definition. Or do you mean negative values here somehow make a difference? What about positive values over 128 in case of tinyint? |